aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2009-05-05 22:50:29 +0000
committerEvan Cheng <evan.cheng@apple.com>2009-05-05 22:50:29 +0000
commit0bd2a9c01db7399970c297d4016ae6bd7bf160bd (patch)
tree35b37dc9a90a7fe119c9353484e68eac9c9bde1f /include
parent18e52d206b01a7cde83505fc8b60d6e11d8026b4 (diff)
downloadexternal_llvm-0bd2a9c01db7399970c297d4016ae6bd7bf160bd.zip
external_llvm-0bd2a9c01db7399970c297d4016ae6bd7bf160bd.tar.gz
external_llvm-0bd2a9c01db7399970c297d4016ae6bd7bf160bd.tar.bz2
Quotes should be printed before private prefix; some code clean up.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@71032 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/Support/Mangler.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/llvm/Support/Mangler.h b/include/llvm/Support/Mangler.h
index 2a0fd8b..8f672bd 100644
--- a/include/llvm/Support/Mangler.h
+++ b/include/llvm/Support/Mangler.h
@@ -29,7 +29,10 @@ class Mangler {
/// symbol is marked as not needing this prefix.
const char *Prefix;
+ /// PrivatePrefix - This string is emitted before each symbol with private
+ /// linkage.
const char *PrivatePrefix;
+
/// UseQuotes - If this is set, the target accepts global names in quotes,
/// e.g. "foo bar" is a legal name. This syntax is used instead of escaping
/// the space character. By default, this is false.
@@ -95,7 +98,8 @@ public:
/// does this for you, so there's no point calling it on the result
/// from getValueName.
///
- std::string makeNameProper(const std::string &x, const char *Prefix = "");
+ std::string makeNameProper(const std::string &x, const char *Prefix = 0,
+ const char *PrivatePrefix = 0);
private:
/// getTypeID - Return a unique ID for the specified LLVM type.