diff options
author | Chris Lattner <sabre@nondot.org> | 2010-01-17 21:43:43 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-01-17 21:43:43 +0000 |
commit | 10b318bcb39218d2ed525e4862c854bc8d1baf63 (patch) | |
tree | 414ec32f01b35456c581d19ab8214974df2d211c /lib/CodeGen/AsmPrinter/DwarfPrinter.cpp | |
parent | 6edec7b34a7f16e0af7fa5947b69805238d6fe6c (diff) |
now that MCSymbol::print doesn't use it's MAI argument, we can
remove it and change all the code that prints MCSymbols to use
<< instead, which is much simpler and cleaner.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@93695 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/AsmPrinter/DwarfPrinter.cpp')
-rw-r--r-- | lib/CodeGen/AsmPrinter/DwarfPrinter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/AsmPrinter/DwarfPrinter.cpp b/lib/CodeGen/AsmPrinter/DwarfPrinter.cpp index 7aca41ed1e..093b1960a6 100644 --- a/lib/CodeGen/AsmPrinter/DwarfPrinter.cpp +++ b/lib/CodeGen/AsmPrinter/DwarfPrinter.cpp @@ -79,7 +79,7 @@ void Dwarf::EmitReference(const std::string &Name, bool IsPCRelative, void Dwarf::EmitReference(const MCSymbol *Sym, bool IsPCRelative, bool Force32Bit) const { PrintRelDirective(Force32Bit); - Sym->print(O, MAI); + O << *Sym; if (IsPCRelative) O << "-" << MAI->getPCSymbol(); } |