[llvm-commits] [llvm] r93309 - /llvm/trunk/lib/Target/Blackfin/AsmPrinter/BlackfinAsmPrinter.cpp
Chris Lattner
sabre at nondot.org
Wed Jan 13 00:04:25 PST 2010
Author: lattner
Date: Wed Jan 13 02:04:24 2010
New Revision: 93309
URL: http://llvm.org/viewvc/llvm-project?rev=93309&view=rev
Log:
MC'ize this a bit and upgrade APIs
Modified:
llvm/trunk/lib/Target/Blackfin/AsmPrinter/BlackfinAsmPrinter.cpp
Modified: llvm/trunk/lib/Target/Blackfin/AsmPrinter/BlackfinAsmPrinter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/Blackfin/AsmPrinter/BlackfinAsmPrinter.cpp?rev=93309&r1=93308&r2=93309&view=diff
==============================================================================
--- llvm/trunk/lib/Target/Blackfin/AsmPrinter/BlackfinAsmPrinter.cpp (original)
+++ llvm/trunk/lib/Target/Blackfin/AsmPrinter/BlackfinAsmPrinter.cpp Wed Jan 13 02:04:24 2010
@@ -25,6 +25,7 @@
#include "llvm/CodeGen/MachineInstr.h"
#include "llvm/MC/MCStreamer.h"
#include "llvm/MC/MCAsmInfo.h"
+#include "llvm/MC/MCContext.h"
#include "llvm/MC/MCSymbol.h"
#include "llvm/Target/TargetData.h"
#include "llvm/Target/TargetLoweringObjectFile.h"
@@ -182,8 +183,8 @@
break;
case MachineOperand::MO_ExternalSymbol: {
SmallString<60> NameStr;
- Mang->makeNameProper(NameStr, MO.getSymbolName());
- O << NameStr.str();
+ Mang->getNameWithPrefix(NameStr, MO.getSymbolName());
+ OutContext.GetOrCreateSymbol(NameStr.str())->print(O, MAI);
break;
}
case MachineOperand::MO_ConstantPoolIndex:
More information about the llvm-commits
mailing list