diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2020-07-26 19:36:28 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2020-07-26 19:36:28 +0000 |
commit | cfca06d7963fa0909f90483b42a6d7d194d01e08 (patch) | |
tree | 209fb2a2d68f8f277793fc8df46c753d31bc853b /llvm/lib/Target/MSP430/MCTargetDesc/MSP430ELFStreamer.cpp | |
parent | 706b4fc47bbc608932d3b491ae19a3b9cde9497b (diff) |
Notes
Diffstat (limited to 'llvm/lib/Target/MSP430/MCTargetDesc/MSP430ELFStreamer.cpp')
-rw-r--r-- | llvm/lib/Target/MSP430/MCTargetDesc/MSP430ELFStreamer.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/llvm/lib/Target/MSP430/MCTargetDesc/MSP430ELFStreamer.cpp b/llvm/lib/Target/MSP430/MCTargetDesc/MSP430ELFStreamer.cpp index 4e054f85ccc39..87ee312424c8c 100644 --- a/llvm/lib/Target/MSP430/MCTargetDesc/MSP430ELFStreamer.cpp +++ b/llvm/lib/Target/MSP430/MCTargetDesc/MSP430ELFStreamer.cpp @@ -43,26 +43,26 @@ MSP430TargetELFStreamer::MSP430TargetELFStreamer(MCStreamer &S, Streamer.SwitchSection(AttributeSection); // Format version. - Streamer.EmitIntValue(0x41, 1); + Streamer.emitInt8(0x41); // Subsection length. - Streamer.EmitIntValue(22, 4); + Streamer.emitInt32(22); // Vendor name string, zero-terminated. - Streamer.EmitBytes("mspabi"); - Streamer.EmitIntValue(0, 1); + Streamer.emitBytes("mspabi"); + Streamer.emitInt8(0); // Attribute vector scope tag. 1 stands for the entire file. - Streamer.EmitIntValue(1, 1); + Streamer.emitInt8(1); // Attribute vector length. - Streamer.EmitIntValue(11, 4); + Streamer.emitInt32(11); // OFBA_MSPABI_Tag_ISA(4) = 1, MSP430 - Streamer.EmitIntValue(4, 1); - Streamer.EmitIntValue(1, 1); + Streamer.emitInt8(4); + Streamer.emitInt8(1); // OFBA_MSPABI_Tag_Code_Model(6) = 1, Small - Streamer.EmitIntValue(6, 1); - Streamer.EmitIntValue(1, 1); + Streamer.emitInt8(6); + Streamer.emitInt8(1); // OFBA_MSPABI_Tag_Data_Model(8) = 1, Small - Streamer.EmitIntValue(8, 1); - Streamer.EmitIntValue(1, 1); + Streamer.emitInt8(8); + Streamer.emitInt8(1); } MCELFStreamer &MSP430TargetELFStreamer::getStreamer() { |