From 990a9fde39b7d9ff7af8beb51752c16f53c0b3d3 Mon Sep 17 00:00:00 2001 From: Anton Korobeynikov Date: Mon, 15 Feb 2010 22:36:26 +0000 Subject: [PATCH] Add suffix for stubs, so we won't have name clashes with private symbols. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@96286 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/TargetLoweringObjectFile.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/Target/TargetLoweringObjectFile.cpp b/lib/Target/TargetLoweringObjectFile.cpp index 88a978ac623..cfd49155adb 100644 --- a/lib/Target/TargetLoweringObjectFile.cpp +++ b/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. -- 2.34.1