minor interface changes.
authorChris Lattner <sabre@nondot.org>
Thu, 10 Nov 2005 18:46:57 +0000 (18:46 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 10 Nov 2005 18:46:57 +0000 (18:46 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24276 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Support/Mangler.h

index 3c2050324ddfa2ff4dad6533993cff2ca06e7465..61fe4d72da9cdbea6075668256e012f041139ff7 100644 (file)
 #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