summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/Sparc/SparcTargetObjectFile.cpp
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2016-09-16 07:33:15 +0000
committerEric Christopher <echristo@gmail.com>2016-09-16 07:33:15 +0000
commit4367c7fb9accecfeca579cdbae82f3c27ede6295 (patch)
tree56537e26ff5f994a95796382ea3a1707b0d9e4c2 /llvm/lib/Target/Sparc/SparcTargetObjectFile.cpp
parenta808f2981eef62df08151f45f239551f013ea19f (diff)
downloadbcm5719-llvm-4367c7fb9accecfeca579cdbae82f3c27ede6295.tar.gz
bcm5719-llvm-4367c7fb9accecfeca579cdbae82f3c27ede6295.zip
Move the Mangler from the AsmPrinter down to TLOF and clean up the
TLOF API accordingly. llvm-svn: 281708
Diffstat (limited to 'llvm/lib/Target/Sparc/SparcTargetObjectFile.cpp')
-rw-r--r--llvm/lib/Target/Sparc/SparcTargetObjectFile.cpp13
1 files changed, 6 insertions, 7 deletions
diff --git a/llvm/lib/Target/Sparc/SparcTargetObjectFile.cpp b/llvm/lib/Target/Sparc/SparcTargetObjectFile.cpp
index 412e124f9a2..b3d766801f8 100644
--- a/llvm/lib/Target/Sparc/SparcTargetObjectFile.cpp
+++ b/llvm/lib/Target/Sparc/SparcTargetObjectFile.cpp
@@ -16,20 +16,19 @@
using namespace llvm;
const MCExpr *SparcELFTargetObjectFile::getTTypeGlobalReference(
- const GlobalValue *GV, unsigned Encoding, Mangler &Mang,
- const TargetMachine &TM, MachineModuleInfo *MMI,
- MCStreamer &Streamer) const {
+ const GlobalValue *GV, unsigned Encoding, const TargetMachine &TM,
+ MachineModuleInfo *MMI, MCStreamer &Streamer) const {
if (Encoding & dwarf::DW_EH_PE_pcrel) {
MachineModuleInfoELF &ELFMMI = MMI->getObjFileInfo<MachineModuleInfoELF>();
- MCSymbol *SSym = getSymbolWithGlobalValueBase(GV, ".DW.stub", Mang, TM);
+ MCSymbol *SSym = getSymbolWithGlobalValueBase(GV, ".DW.stub", TM);
// Add information about the stub reference to ELFMMI so that the stub
// gets emitted by the asmprinter.
MachineModuleInfoImpl::StubValueTy &StubSym = ELFMMI.getGVStubEntry(SSym);
if (!StubSym.getPointer()) {
- MCSymbol *Sym = TM.getSymbol(GV, Mang);
+ MCSymbol *Sym = TM.getSymbol(GV, getMangler());
StubSym = MachineModuleInfoImpl::StubValueTy(Sym, !GV->hasLocalLinkage());
}
@@ -38,6 +37,6 @@ const MCExpr *SparcELFTargetObjectFile::getTTypeGlobalReference(
MCSymbolRefExpr::create(SSym, Ctx), Ctx);
}
- return TargetLoweringObjectFileELF::getTTypeGlobalReference(
- GV, Encoding, Mang, TM, MMI, Streamer);
+ return TargetLoweringObjectFileELF::getTTypeGlobalReference(GV, Encoding, TM,
+ MMI, Streamer);
}
OpenPOWER on IntegriCloud