summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/AsmPrinter
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/CodeGen/AsmPrinter
parent9a355219d19b316f3f5baa093164ca554e7af17e (diff)
downloadbcm5719-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/CodeGen/AsmPrinter')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp b/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
index 6b52e97a02c..74724c224c8 100644
--- a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
@@ -345,7 +345,7 @@ void AsmPrinter::getNameWithPrefix(SmallVectorImpl<char> &Name,
}
MCSymbol *AsmPrinter::getSymbol(const GlobalValue *GV) const {
- return TM.getSymbol(GV, getObjFileLowering().getMangler());
+ return TM.getSymbol(GV);
}
/// EmitGlobalVariable - Emit the specified global variable to the .s file.
OpenPOWER on IntegriCloud