diff options
| author | Chris Lattner <sabre@nondot.org> | 2010-01-13 19:19:17 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2010-01-13 19:19:17 +0000 |
| commit | 9d9573676f81aea5eecfdbccad0beb290692e45e (patch) | |
| tree | 3cfdf58ce6e8e885cc38d5e80352d4c952697a7e | |
| parent | 2308d17eb3701702b9fc659e1793940c10b5797d (diff) | |
| download | external_llvm-9d9573676f81aea5eecfdbccad0beb290692e45e.zip external_llvm-9d9573676f81aea5eecfdbccad0beb290692e45e.tar.gz external_llvm-9d9573676f81aea5eecfdbccad0beb290692e45e.tar.bz2 | |
Use the GV version of getNameWithPrefix in TargetLoweringObjectFileCOFF::
SelectSectionForGlobal, unbreaking weak globals with no-name.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@93336 91177308-0d34-0410-b5e6-96231b3b80d8
| -rw-r--r-- | lib/Target/TargetLoweringObjectFile.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/TargetLoweringObjectFile.cpp b/lib/Target/TargetLoweringObjectFile.cpp index 3ef2b3f..14f510c 100644 --- a/lib/Target/TargetLoweringObjectFile.cpp +++ b/lib/Target/TargetLoweringObjectFile.cpp @@ -1084,7 +1084,7 @@ SelectSectionForGlobal(const GlobalValue *GV, SectionKind Kind, if (GV->isWeakForLinker()) { const char *Prefix = getCOFFSectionPrefixForUniqueGlobal(Kind); SmallString<128> Name(Prefix, Prefix+strlen(Prefix)); - Mang->getNameWithPrefix(Name, GV->getName()); + Mang->getNameWithPrefix(Name, GV, false); return getCOFFSection(Name.str(), false, Kind); } |
