diff options
author | Nico Rieck <nico.rieck@gmail.com> | 2013-07-29 13:58:39 +0000 |
---|---|---|
committer | Nico Rieck <nico.rieck@gmail.com> | 2013-07-29 13:58:39 +0000 |
commit | 7fdaee8f1520458a96fa47e58ef64ce164e16b8e (patch) | |
tree | a6ae36d4245de574b1843181a9ddf384941ce588 /llvm/include | |
parent | 06d17c80cc8947a4ccf79cdb59547607a215050a (diff) | |
download | bcm5719-llvm-7fdaee8f1520458a96fa47e58ef64ce164e16b8e.tar.gz bcm5719-llvm-7fdaee8f1520458a96fa47e58ef64ce164e16b8e.zip |
Use proper section suffix for COFF weak symbols
32-bit symbols have "_" as global prefix, but when forming the name of
COMDAT sections this prefix is ignored. The current behavior assumes that
this prefix is always present which is not the case for 64-bit and names
are truncated.
llvm-svn: 187356
Diffstat (limited to 'llvm/include')
-rw-r--r-- | llvm/include/llvm/Target/Mangler.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/include/llvm/Target/Mangler.h b/llvm/include/llvm/Target/Mangler.h index 986244f53e5..e925cd51649 100644 --- a/llvm/include/llvm/Target/Mangler.h +++ b/llvm/include/llvm/Target/Mangler.h @@ -59,13 +59,14 @@ public: /// and the specified global variable's name. If the global variable doesn't /// have a name, this fills in a unique name for the global. void getNameWithPrefix(SmallVectorImpl<char> &OutName, const GlobalValue *GV, - bool isImplicitlyPrivate); + bool isImplicitlyPrivate, bool UseGlobalPrefix = true); /// getNameWithPrefix - Fill OutName with the name of the appropriate prefix /// and the specified name as the global variable name. GVName must not be /// empty. void getNameWithPrefix(SmallVectorImpl<char> &OutName, const Twine &GVName, - ManglerPrefixTy PrefixTy = Mangler::Default); + ManglerPrefixTy PrefixTy = Mangler::Default, + bool UseGlobalPrefix = true); }; } // End llvm namespace |