aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorNico Rieck <nico.rieck@gmail.com>2013-07-29 13:58:39 +0000
committerNico Rieck <nico.rieck@gmail.com>2013-07-29 13:58:39 +0000
commitfdbea5107b5a8249421fd5e603a31f40f05ea25f (patch)
tree8fad36d3436d0bb285eb5182e011f6f626e78391 /include
parent944061c4e152e9f66ffaaca5905253ba8012a4fa (diff)
downloadexternal_llvm-fdbea5107b5a8249421fd5e603a31f40f05ea25f.zip
external_llvm-fdbea5107b5a8249421fd5e603a31f40f05ea25f.tar.gz
external_llvm-fdbea5107b5a8249421fd5e603a31f40f05ea25f.tar.bz2
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@187356 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/Target/Mangler.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/llvm/Target/Mangler.h b/include/llvm/Target/Mangler.h
index 986244f..e925cd5 100644
--- a/include/llvm/Target/Mangler.h
+++ b/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