diff options
author | Chris Lattner <sabre@nondot.org> | 2010-03-30 18:10:53 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-03-30 18:10:53 +0000 |
commit | 9b97a73dedf736e14b04a3d1a153f10d25b2507b (patch) | |
tree | 7aad15dcf86faefa985deecc4624432ca06f91a9 /lib/Target/Mangler.cpp | |
parent | 87bd1916024497ceaf3cdc050e743a532813e82b (diff) |
Rip out the 'is temporary' nonsense from the MCContext interface to
create symbols. It is extremely error prone and a source of a lot
of the remaining integrated assembler bugs on x86-64.
This fixes rdar://7807601.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@99902 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/Mangler.cpp')
-rw-r--r-- | lib/Target/Mangler.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/Target/Mangler.cpp b/lib/Target/Mangler.cpp index fb93706074..1d5c51164e 100644 --- a/lib/Target/Mangler.cpp +++ b/lib/Target/Mangler.cpp @@ -235,10 +235,7 @@ std::string Mangler::getNameWithPrefix(const GlobalValue *GV, MCSymbol *Mangler::getSymbol(const GlobalValue *GV) { SmallString<60> NameStr; getNameWithPrefix(NameStr, GV, false); - if (!GV->hasPrivateLinkage()) - return Context.GetOrCreateSymbol(NameStr.str()); - - return Context.GetOrCreateTemporarySymbol(NameStr.str()); + return Context.GetOrCreateSymbol(NameStr.str()); } |