summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorAnton Korobeynikov <asl@math.spbu.ru>2010-02-15 22:36:26 +0000
committerAnton Korobeynikov <asl@math.spbu.ru>2010-02-15 22:36:26 +0000
commit397aecb6d6c306ba83512cd409229c90655240a3 (patch)
treee9f0a8410761dd0cfbb4dc18aefa73be1be841d5 /llvm/lib
parentae4ccc10dab6d25711110f6b9ec530637c3d5231 (diff)
downloadbcm5719-llvm-397aecb6d6c306ba83512cd409229c90655240a3.tar.gz
bcm5719-llvm-397aecb6d6c306ba83512cd409229c90655240a3.zip
Add suffix for stubs, so we won't have name clashes with private symbols.
llvm-svn: 96286
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Target/TargetLoweringObjectFile.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Target/TargetLoweringObjectFile.cpp b/llvm/lib/Target/TargetLoweringObjectFile.cpp
index 88a978ac623..cfd49155adb 100644
--- a/llvm/lib/Target/TargetLoweringObjectFile.cpp
+++ b/llvm/lib/Target/TargetLoweringObjectFile.cpp
@@ -706,6 +706,7 @@ getSymbolForDwarfGlobalReference(const GlobalValue *GV, Mangler *Mang,
SmallString<128> Name;
Mang->getNameWithPrefix(Name, GV, true);
+ Name += ".DW.stub";
// Add information about the stub reference to ELFMMI so that the stub
// gets emitted by the asmprinter.
OpenPOWER on IntegriCloud