diff options
| author | Chris Lattner <sabre@nondot.org> | 2010-01-16 18:37:32 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2010-01-16 18:37:32 +0000 |
| commit | 555ceabe64d5b45e5a36a6a15be9372423e26473 (patch) | |
| tree | cbaec9200ab3964cc6d74bfc150d01d591be17f3 /llvm/lib/Target/PowerPC | |
| parent | 8a1f23af110e58c78c5f2d5d5e015ed1cd848129 (diff) | |
| download | bcm5719-llvm-555ceabe64d5b45e5a36a6a15be9372423e26473.tar.gz bcm5719-llvm-555ceabe64d5b45e5a36a6a15be9372423e26473.zip | |
rename GetPrivateGlobalValueSymbolStub -> GetSymbolWithGlobalValueBase,
and add an explicit ForcePrivate argument.
Switch FunctionEHFrameInfo to be MCSymbol based instead of string based.
llvm-svn: 93646
Diffstat (limited to 'llvm/lib/Target/PowerPC')
| -rw-r--r-- | llvm/lib/Target/PowerPC/AsmPrinter/PPCAsmPrinter.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/llvm/lib/Target/PowerPC/AsmPrinter/PPCAsmPrinter.cpp b/llvm/lib/Target/PowerPC/AsmPrinter/PPCAsmPrinter.cpp index ef171ddc649..311ca85eb3a 100644 --- a/llvm/lib/Target/PowerPC/AsmPrinter/PPCAsmPrinter.cpp +++ b/llvm/lib/Target/PowerPC/AsmPrinter/PPCAsmPrinter.cpp @@ -70,9 +70,9 @@ namespace { if (Stub != 0) return; // Get the names. - Stub = Printer->GetPrivateGlobalValueSymbolStub(GV, "$stub"); - LazyPtr = Printer->GetPrivateGlobalValueSymbolStub(GV, "$lazy_ptr"); - AnonSymbol = Printer->GetPrivateGlobalValueSymbolStub(GV, "$stub$tmp"); + Stub = Printer->GetSymbolWithGlobalValueBase(GV, "$stub"); + LazyPtr = Printer->GetSymbolWithGlobalValueBase(GV, "$lazy_ptr"); + AnonSymbol = Printer->GetSymbolWithGlobalValueBase(GV, "$stub$tmp"); } void Init(StringRef GVName, Mangler *Mang, MCContext &Ctx) { @@ -450,11 +450,11 @@ void PPCAsmPrinter::printOp(const MachineOperand &MO) { if (TM.getRelocationModel() != Reloc::Static && (GV->isDeclaration() || GV->isWeakForLinker())) { if (!GV->hasHiddenVisibility()) { - SymToPrint = GetPrivateGlobalValueSymbolStub(GV, "$non_lazy_ptr"); + SymToPrint = GetSymbolWithGlobalValueBase(GV, "$non_lazy_ptr"); GVStubs[GetGlobalValueSymbol(GV)] = SymToPrint; } else if (GV->isDeclaration() || GV->hasCommonLinkage() || GV->hasAvailableExternallyLinkage()) { - SymToPrint = GetPrivateGlobalValueSymbolStub(GV, "$non_lazy_ptr"); + SymToPrint = GetSymbolWithGlobalValueBase(GV, "$non_lazy_ptr"); HiddenGVStubs[GetGlobalValueSymbol(GV)] = SymToPrint; } else { SymToPrint = GetGlobalValueSymbol(GV); @@ -1200,7 +1200,7 @@ bool PPCDarwinAsmPrinter::doFinalization(Module &M) { E = Personalities.end(); I != E; ++I) { if (*I) GVStubs[GetGlobalValueSymbol(*I)] = - GetPrivateGlobalValueSymbolStub(*I, "$non_lazy_ptr"); + GetSymbolWithGlobalValueBase(*I, "$non_lazy_ptr"); } } |

