MC'ize this a bit and upgrade APIs

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@93309 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2010-01-13 08:04:24 +00:00
parent 4d5f06fbe5
commit 13b1e92e6c

View File

@ -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 @@ void BlackfinAsmPrinter::printOperand(const MachineInstr *MI, int opNum) {
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: