mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-21 18:24:23 +00:00
Add support for changes in DwarfWriter.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34478 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -280,6 +280,8 @@ namespace {
|
||||
|
||||
virtual bool runOnMachineFunction(MachineFunction &F) = 0;
|
||||
virtual bool doFinalization(Module &M) = 0;
|
||||
|
||||
virtual void EmitExternalGlobal(const GlobalVariable *GV);
|
||||
};
|
||||
|
||||
/// LinuxAsmPrinter - PowerPC assembly printer, customized for Linux
|
||||
@ -401,6 +403,18 @@ void PPCAsmPrinter::printOp(const MachineOperand &MO) {
|
||||
}
|
||||
}
|
||||
|
||||
/// EmitExternalGlobal - In this case we need to use the indirect symbol.
|
||||
///
|
||||
void PPCAsmPrinter::EmitExternalGlobal(const GlobalVariable *GV) {
|
||||
std::string Name = getGlobalLinkName(GV);
|
||||
if (TM.getRelocationModel() != Reloc::Static) {
|
||||
GVStubs.insert(Name);
|
||||
O << "L" << Name << "$non_lazy_ptr";
|
||||
return;
|
||||
}
|
||||
O << Name;
|
||||
}
|
||||
|
||||
/// PrintAsmOperand - Print out an operand for an inline asm expression.
|
||||
///
|
||||
bool PPCAsmPrinter::PrintAsmOperand(const MachineInstr *MI, unsigned OpNo,
|
||||
|
Reference in New Issue
Block a user