diff options
| author | Chris Lattner <sabre@nondot.org> | 2009-09-11 05:51:29 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2009-09-11 05:51:29 +0000 |
| commit | c827f53495a156891c5588c9aa0fc9fdb2da59ca (patch) | |
| tree | 7e915729759482c763dd708fc4af40da7b4e48b1 /llvm/lib | |
| parent | 840c8d72d045cfaeb0c0b940f1a7a1b3f5038440 (diff) | |
| download | bcm5719-llvm-c827f53495a156891c5588c9aa0fc9fdb2da59ca.tar.gz bcm5719-llvm-c827f53495a156891c5588c9aa0fc9fdb2da59ca.zip | |
fix prefix ordering, it's L_foo not _Lfoo
llvm-svn: 81506
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/VMCore/Mangler.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/VMCore/Mangler.cpp b/llvm/lib/VMCore/Mangler.cpp index 21ba086d19f..d56e8e2ee03 100644 --- a/llvm/lib/VMCore/Mangler.cpp +++ b/llvm/lib/VMCore/Mangler.cpp @@ -170,13 +170,12 @@ void Mangler::getNameWithPrefix(SmallVectorImpl<char> &OutName, // If the global is anonymous or not led with \1, then add the appropriate // prefix. if (!GV->hasName() || GV->getName()[0] != '\1') { - OutName.append(Prefix, Prefix+strlen(Prefix)); - if (GV->hasPrivateLinkage() || isImplicitlyPrivate) OutName.append(PrivatePrefix, PrivatePrefix+strlen(PrivatePrefix)); else if (GV->hasLinkerPrivateLinkage()) OutName.append(LinkerPrivatePrefix, LinkerPrivatePrefix+strlen(LinkerPrivatePrefix));; + OutName.append(Prefix, Prefix+strlen(Prefix)); } // If the global has a name, just append it now. |

