diff options
author | Chris Lattner <sabre@nondot.org> | 2010-01-18 00:37:40 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-01-18 00:37:40 +0000 |
commit | c8f7717808df07c096107cb397a91e0772bca028 (patch) | |
tree | 821c507e5c81b993a84883aa5cd7e6461b686417 /llvm/lib/MC/MCAsmStreamer.cpp | |
parent | fae53f0c61224864bb8f5a3815d1b4317b1ddf5c (diff) | |
download | bcm5719-llvm-c8f7717808df07c096107cb397a91e0772bca028.tar.gz bcm5719-llvm-c8f7717808df07c096107cb397a91e0772bca028.zip |
remove the MAI argument to MCExpr::print and switch overthing to use << when printing them.
llvm-svn: 93699
Diffstat (limited to 'llvm/lib/MC/MCAsmStreamer.cpp')
-rw-r--r-- | llvm/lib/MC/MCAsmStreamer.cpp | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/llvm/lib/MC/MCAsmStreamer.cpp b/llvm/lib/MC/MCAsmStreamer.cpp index 9e8c7ce59eb..4768c623552 100644 --- a/llvm/lib/MC/MCAsmStreamer.cpp +++ b/llvm/lib/MC/MCAsmStreamer.cpp @@ -118,9 +118,7 @@ void MCAsmStreamer::EmitAssignment(MCSymbol *Symbol, const MCExpr *Value) { assert((Symbol->isUndefined() || Symbol->isAbsolute()) && "Cannot define a symbol twice!"); - OS << *Symbol << " = "; - Value->print(OS, &MAI); - OS << '\n'; + OS << *Symbol << " = " << *Value << '\n'; // FIXME: Lift context changes into super class. // FIXME: Set associated section. @@ -194,9 +192,7 @@ void MCAsmStreamer::EmitValue(const MCExpr *Value, unsigned Size) { case 8: OS << ".quad"; break; } - OS << ' '; - truncateToSize(Value, Size)->print(OS, &MAI); - OS << '\n'; + OS << ' ' << *truncateToSize(Value, Size) << '\n'; } void MCAsmStreamer::EmitValueToAlignment(unsigned ByteAlignment, int64_t Value, @@ -250,9 +246,7 @@ void MCAsmStreamer::EmitValueToAlignment(unsigned ByteAlignment, int64_t Value, void MCAsmStreamer::EmitValueToOffset(const MCExpr *Offset, unsigned char Value) { // FIXME: Verify that Offset is associated with the current section. - OS << ".org "; - Offset->print(OS, &MAI); - OS << ", " << (unsigned) Value << '\n'; + OS << ".org " << *Offset << ", " << (unsigned) Value << '\n'; } void MCAsmStreamer::EmitInstruction(const MCInst &Inst) { |