diff options
author | Tim Northover <tnorthover@apple.com> | 2016-11-22 16:17:20 +0000 |
---|---|---|
committer | Tim Northover <tnorthover@apple.com> | 2016-11-22 16:17:20 +0000 |
commit | b64fb453eaf3c2d768538571b2d99b4c5acf8911 (patch) | |
tree | 5caa3f2fde0a3e51156f873257f7f48f1dc6522f /llvm/lib/Target/Sparc | |
parent | 9a355219d19b316f3f5baa093164ca554e7af17e (diff) | |
download | bcm5719-llvm-b64fb453eaf3c2d768538571b2d99b4c5acf8911.tar.gz bcm5719-llvm-b64fb453eaf3c2d768538571b2d99b4c5acf8911.zip |
CodeGen: simplify TargetMachine::getSymbol interface. NFC.
No-one actually had a mangler handy when calling this function, and
getSymbol itself went most of the way towards getting its own mangler
(with a local TLOF variable) so forcing all callers to supply one was
just extra complication.
llvm-svn: 287645
Diffstat (limited to 'llvm/lib/Target/Sparc')
-rw-r--r-- | llvm/lib/Target/Sparc/SparcTargetObjectFile.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/Sparc/SparcTargetObjectFile.cpp b/llvm/lib/Target/Sparc/SparcTargetObjectFile.cpp index b3d766801f8..8fdde15d8d2 100644 --- a/llvm/lib/Target/Sparc/SparcTargetObjectFile.cpp +++ b/llvm/lib/Target/Sparc/SparcTargetObjectFile.cpp @@ -28,7 +28,7 @@ const MCExpr *SparcELFTargetObjectFile::getTTypeGlobalReference( // gets emitted by the asmprinter. MachineModuleInfoImpl::StubValueTy &StubSym = ELFMMI.getGVStubEntry(SSym); if (!StubSym.getPointer()) { - MCSymbol *Sym = TM.getSymbol(GV, getMangler()); + MCSymbol *Sym = TM.getSymbol(GV); StubSym = MachineModuleInfoImpl::StubValueTy(Sym, !GV->hasLocalLinkage()); } |