summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/TargetMachine.cpp
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2016-09-20 16:05:02 +0000
committerEric Christopher <echristo@gmail.com>2016-09-20 16:05:02 +0000
commita1ccdc34336014793462ecfd7c4e335689873f83 (patch)
tree0e30bc8bcf03e01248bc4f246edd9602b7238a24 /llvm/lib/Target/TargetMachine.cpp
parentef579d21953fb66f921fd31ab549f8c2584e67b6 (diff)
downloadbcm5719-llvm-a1ccdc34336014793462ecfd7c4e335689873f83.tar.gz
bcm5719-llvm-a1ccdc34336014793462ecfd7c4e335689873f83.zip
Remove more guts of TargetMachine::getNameWithPrefix and migrate one check to the TLOF mach-o version.
NFC intended. llvm-svn: 281983
Diffstat (limited to 'llvm/lib/Target/TargetMachine.cpp')
-rw-r--r--llvm/lib/Target/TargetMachine.cpp9
1 files changed, 1 insertions, 8 deletions
diff --git a/llvm/lib/Target/TargetMachine.cpp b/llvm/lib/Target/TargetMachine.cpp
index 47c5a56ce09..aa1916bb2eb 100644
--- a/llvm/lib/Target/TargetMachine.cpp
+++ b/llvm/lib/Target/TargetMachine.cpp
@@ -200,14 +200,7 @@ TargetIRAnalysis TargetMachine::getTargetIRAnalysis() {
void TargetMachine::getNameWithPrefix(SmallVectorImpl<char> &Name,
const GlobalValue *GV, Mangler &Mang) const {
- if (!GV->hasPrivateLinkage()) {
- // Simple case: If GV is not private, it is not important to find out if
- // private labels are legal in this case or not.
- Mang.getNameWithPrefix(Name, GV, false);
- return;
- }
- const TargetLoweringObjectFile *TLOF = getObjFileLowering();
- TLOF->getNameWithPrefix(Name, GV, *this);
+ getObjFileLowering()->getNameWithPrefix(Name, GV, *this);
}
MCSymbol *TargetMachine::getSymbol(const GlobalValue *GV, Mangler &Mang) const {
OpenPOWER on IntegriCloud