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

Chris Lattner lattner at cs.uiuc.edu
Mon Aug 16 23:06:49 PDT 2004



Changes in directory llvm/include/llvm/Support:

Mangler.h updated: 1.10 -> 1.11
---
Log message:

Allow an arbitrary prefix.


---
Diffs of the changes:  (+4 -4)

Index: llvm/include/llvm/Support/Mangler.h
diff -u llvm/include/llvm/Support/Mangler.h:1.10 llvm/include/llvm/Support/Mangler.h:1.11
--- llvm/include/llvm/Support/Mangler.h:1.10	Thu Jul  8 17:09:07 2004
+++ llvm/include/llvm/Support/Mangler.h	Tue Aug 17 01:06:37 2004
@@ -31,7 +31,7 @@
   std::set<const Value *> MangledGlobals;
 
   Module &M;
-  bool AddUnderscorePrefix;
+  const char *Prefix;
 
   unsigned TypeCounter;
   std::map<const Type*, unsigned> TypeMap;
@@ -44,9 +44,9 @@
   void InsertName(GlobalValue *GV, std::map<std::string, GlobalValue*> &Names);
 public:
 
-  // Mangler ctor - if AddUnderscorePrefix is true, then all public global
-  // symbols will be prefixed with an underscore.
-  Mangler(Module &M, bool AddUnderscorePrefix = false);
+  // Mangler ctor - if a prefix is specified, it will be prepended onto all
+  // symbols.
+  Mangler(Module &M, const char *Prefix = "");
 
   /// getTypeID - Return a unique ID for the specified LLVM type.
   ///






More information about the llvm-commits mailing list