aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/Support/Mangler.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-11-10 18:46:57 +0000
committerChris Lattner <sabre@nondot.org>2005-11-10 18:46:57 +0000
commita112e0f44721848363b42ddeb7c6354f934878e0 (patch)
treec987450f3d67d5f487f242e078a491fae5681228 /include/llvm/Support/Mangler.h
parent450de393acdf4be89db8558522b04d8111e4562b (diff)
downloadexternal_llvm-a112e0f44721848363b42ddeb7c6354f934878e0.zip
external_llvm-a112e0f44721848363b42ddeb7c6354f934878e0.tar.gz
external_llvm-a112e0f44721848363b42ddeb7c6354f934878e0.tar.bz2
minor interface changes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24276 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Support/Mangler.h')
-rw-r--r--include/llvm/Support/Mangler.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/include/llvm/Support/Mangler.h b/include/llvm/Support/Mangler.h
index 3c20503..61fe4d7 100644
--- a/include/llvm/Support/Mangler.h
+++ b/include/llvm/Support/Mangler.h
@@ -19,16 +19,16 @@
#include <string>
namespace llvm {
-class Value;
class Type;
class Module;
+class Value;
class GlobalValue;
class Mangler {
/// This keeps track of which global values have had their names
/// mangled in the current module.
///
- std::set<const Value *> MangledGlobals;
+ std::set<const GlobalValue*> MangledGlobals;
Module &M;
const char *Prefix;
@@ -36,7 +36,7 @@ class Mangler {
unsigned TypeCounter;
std::map<const Type*, unsigned> TypeMap;
- typedef std::map<const Value *, std::string> ValueMap;
+ typedef std::map<const Value*, std::string> ValueMap;
ValueMap Memo;
unsigned Count;
@@ -55,6 +55,7 @@ public:
/// getValueName - Returns the mangled name of V, an LLVM Value,
/// in the current module.
///
+ std::string getValueName(const GlobalValue *V);
std::string getValueName(const Value *V);
/// makeNameProper - We don't want identifier names with ., space, or