Removed unused, useless header file.
[oota-llvm.git] / include / llvm / Support / Mangler.h
index 1f56ff319e41ad8e1bd7dbcd54ffe24b2b2b37fc..2528420d47d479894bef7ec9e6ada0f6a480a81d 100644 (file)
@@ -1,4 +1,4 @@
-//===-- Mangler.h - Self-contained c/asm llvm name mangler ------*- C++ -*-===//
+//===-- Mangler.h - Self-contained llvm name mangler ------------*- C++ -*-===//
 // 
 //                     The LLVM Compiler Infrastructure
 //
@@ -7,19 +7,22 @@
 // 
 //===----------------------------------------------------------------------===//
 //
-// Unified name mangler for CWriter and assembly backends.
+// Unified name mangler for various backends.
 //
 //===----------------------------------------------------------------------===//
 
 #ifndef LLVM_SUPPORT_MANGLER_H
 #define LLVM_SUPPORT_MANGLER_H
 
-class Value;
-class Module;
 #include <map>
 #include <set>
 #include <string>
 
+namespace llvm {
+class Value;
+class Module;
+class GlobalValue;
+
 class Mangler {
   /// This keeps track of which global values have had their names
   /// mangled in the current module.
@@ -33,6 +36,8 @@ class Mangler {
   ValueMap Memo;
 
   unsigned Count;
+
+  void InsertName(GlobalValue *GV, std::map<std::string, GlobalValue*> &Names);
 public:
 
   // Mangler ctor - if AddUnderscorePrefix is true, then all public global
@@ -54,4 +59,6 @@ public:
   static std::string makeNameProper(const std::string &x);
 };
 
+} // End llvm namespace
+
 #endif // LLVM_SUPPORT_MANGLER_H