mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
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:
parent
4d5f06fbe5
commit
13b1e92e6c
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user