diff options
author | Chris Lattner <sabre@nondot.org> | 2004-08-17 06:06:37 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-08-17 06:06:37 +0000 |
commit | 2c2475296d55bd38281cba0c2b41ba3a897164dd (patch) | |
tree | 1d60bb2855cb5e9fd34ee1a105389dd3b842498c /include/llvm/Support | |
parent | af2bf0ab306f7a9a3fe2af028656514f7ef53143 (diff) | |
download | external_llvm-2c2475296d55bd38281cba0c2b41ba3a897164dd.zip external_llvm-2c2475296d55bd38281cba0c2b41ba3a897164dd.tar.gz external_llvm-2c2475296d55bd38281cba0c2b41ba3a897164dd.tar.bz2 |
Allow an arbitrary prefix.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15864 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Support')
-rw-r--r-- | include/llvm/Support/Mangler.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/llvm/Support/Mangler.h b/include/llvm/Support/Mangler.h index 4fa5329..4043d85 100644 --- a/include/llvm/Support/Mangler.h +++ b/include/llvm/Support/Mangler.h @@ -31,7 +31,7 @@ class Mangler { std::set<const Value *> MangledGlobals; Module &M; - bool AddUnderscorePrefix; + const char *Prefix; unsigned TypeCounter; std::map<const Type*, unsigned> TypeMap; @@ -44,9 +44,9 @@ class Mangler { void InsertName(GlobalValue *GV, std::map<std::string, GlobalValue*> &Names); public: - // Mangler ctor - if AddUnderscorePrefix is true, then all public global - // symbols will be prefixed with an underscore. - Mangler(Module &M, bool AddUnderscorePrefix = false); + // Mangler ctor - if a prefix is specified, it will be prepended onto all + // symbols. + Mangler(Module &M, const char *Prefix = ""); /// getTypeID - Return a unique ID for the specified LLVM type. /// |