aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Target/ARM/ARMTargetObjectFile.cpp
diff options
context:
space:
mode:
authorTim Northover <tnorthover@apple.com>2016-11-22 16:17:20 +0000
committerTim Northover <tnorthover@apple.com>2016-11-22 16:17:20 +0000
commitb64fb453eaf3c2d768538571b2d99b4c5acf8911 (patch)
tree5caa3f2fde0a3e51156f873257f7f48f1dc6522f /llvm/lib/Target/ARM/ARMTargetObjectFile.cpp
parent9a355219d19b316f3f5baa093164ca554e7af17e (diff)
downloadllvm-b64fb453eaf3c2d768538571b2d99b4c5acf8911.zip
llvm-b64fb453eaf3c2d768538571b2d99b4c5acf8911.tar.gz
llvm-b64fb453eaf3c2d768538571b2d99b4c5acf8911.tar.bz2
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/ARM/ARMTargetObjectFile.cpp')
-rw-r--r--llvm/lib/Target/ARM/ARMTargetObjectFile.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/ARM/ARMTargetObjectFile.cpp b/llvm/lib/Target/ARM/ARMTargetObjectFile.cpp
index 8218a90..ec364e8 100644
--- a/llvm/lib/Target/ARM/ARMTargetObjectFile.cpp
+++ b/llvm/lib/Target/ARM/ARMTargetObjectFile.cpp
@@ -49,7 +49,7 @@ const MCExpr *ARMElfTargetObjectFile::getTTypeGlobalReference(
assert(Encoding == DW_EH_PE_absptr && "Can handle absptr encoding only");
- return MCSymbolRefExpr::create(TM.getSymbol(GV, getMangler()),
+ return MCSymbolRefExpr::create(TM.getSymbol(GV),
MCSymbolRefExpr::VK_ARM_TARGET2, getContext());
}