[llvm-commits] CVS: llvm/include/llvm/Support/Mangler.h

Chris Lattner lattner at cs.uiuc.edu
Fri Feb 13 18:31:15 PST 2004


Changes in directory llvm/include/llvm/Support:

Mangler.h updated: 1.8 -> 1.9

---
Log message:

Add method


---
Diffs of the changes:  (+7 -9)

Index: llvm/include/llvm/Support/Mangler.h
diff -u llvm/include/llvm/Support/Mangler.h:1.8 llvm/include/llvm/Support/Mangler.h:1.9
--- llvm/include/llvm/Support/Mangler.h:1.8	Tue Nov 11 16:41:31 2003
+++ llvm/include/llvm/Support/Mangler.h	Fri Feb 13 18:30:31 2004
@@ -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,25 +7,21 @@
 // 
 //===----------------------------------------------------------------------===//
 //
-// Unified name mangler for CWriter and assembly backends.
+// Unified name mangler for various backends.
 //
 //===----------------------------------------------------------------------===//
 
 #ifndef LLVM_SUPPORT_MANGLER_H
 #define LLVM_SUPPORT_MANGLER_H
 
-namespace llvm {
-
-class Value;
-class Module;
-
-} // End llvm namespace
-
 #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
@@ -40,6 +36,8 @@
   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





More information about the llvm-commits mailing list