diff options
| author | Chris Lattner <sabre@nondot.org> | 2010-01-13 21:31:39 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2010-01-13 21:31:39 +0000 |
| commit | 4cfd5835c9e93f85e9d36e87849931e926a19f10 (patch) | |
| tree | 6741b7e4ea91e09bd0d1285b3bb316d4ac4c9cff /llvm/include | |
| parent | ccbeed2af4a22b8b3e24ef50e81dd245dc8c0530 (diff) | |
| download | bcm5719-llvm-4cfd5835c9e93f85e9d36e87849931e926a19f10.tar.gz bcm5719-llvm-4cfd5835c9e93f85e9d36e87849931e926a19f10.zip | |
makeNameProper is now private!
llvm-svn: 93357
Diffstat (limited to 'llvm/include')
| -rw-r--r-- | llvm/include/llvm/Support/Mangler.h | 24 |
1 files changed, 13 insertions, 11 deletions
diff --git a/llvm/include/llvm/Support/Mangler.h b/llvm/include/llvm/Support/Mangler.h index 4080a1d6ca8..aa230d48e86 100644 --- a/llvm/include/llvm/Support/Mangler.h +++ b/llvm/include/llvm/Support/Mangler.h @@ -108,6 +108,19 @@ public: std::string getMangledName(const GlobalValue *V, const char *Suffix = "", bool ForcePrivate = false); + /// getNameWithPrefix - Fill OutName with the name of the appropriate prefix + /// 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); + + /// 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); + +private: /// makeNameProper - We don't want identifier names with ., space, or /// - in them, so we mangle these characters into the strings "d_", /// "s_", and "D_", respectively. This is a very simple mangling that @@ -122,17 +135,6 @@ public: const Twine &Name, ManglerPrefixTy PrefixTy = Mangler::Default); - /// getNameWithPrefix - Fill OutName with the name of the appropriate prefix - /// 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); - - /// 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); }; } // End llvm namespace |

