summaryrefslogtreecommitdiffstats
path: root/llvm/include
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-01-13 07:01:09 +0000
committerChris Lattner <sabre@nondot.org>2010-01-13 07:01:09 +0000
commit33535b32507a24a65085d4ab4681ac1b5823248e (patch)
tree5a544fd94c52a7d442854cfba3c727498be2e6cf /llvm/include
parent6d11e07b1684ade0d9b9c60fe7f13bfc33d71325 (diff)
downloadbcm5719-llvm-33535b32507a24a65085d4ab4681ac1b5823248e.tar.gz
bcm5719-llvm-33535b32507a24a65085d4ab4681ac1b5823248e.zip
ugh, my last patch just sped up a method and changed all the clients
that I want to completely eliminate. Add fixme's so I remember this in the future, and add the missing helper that they should be upgraded to use instead. llvm-svn: 93300
Diffstat (limited to 'llvm/include')
-rw-r--r--llvm/include/llvm/Support/Mangler.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/llvm/include/llvm/Support/Mangler.h b/llvm/include/llvm/Support/Mangler.h
index 1467d672abf..4080a1d6ca8 100644
--- a/llvm/include/llvm/Support/Mangler.h
+++ b/llvm/include/llvm/Support/Mangler.h
@@ -102,6 +102,9 @@ public:
/// specified suffix. If 'ForcePrivate' is specified, the label is specified
/// to have a private label prefix.
///
+ /// FIXME: This is deprecated, new code should use getNameWithPrefix and use
+ /// MCSymbol printing to handle quotes or not etc.
+ ///
std::string getMangledName(const GlobalValue *V, const char *Suffix = "",
bool ForcePrivate = false);
@@ -112,6 +115,9 @@ public:
/// does this for you, so there's no point calling it on the result
/// from getValueName.
///
+ /// FIXME: This is deprecated, new code should use getNameWithPrefix and use
+ /// MCSymbol printing to handle quotes or not etc.
+ ///
void makeNameProper(SmallVectorImpl<char> &OutName,
const Twine &Name,
ManglerPrefixTy PrefixTy = Mangler::Default);
@@ -121,6 +127,12 @@ public:
/// 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
OpenPOWER on IntegriCloud