[llvm-commits] CVS: llvm/include/llvm/PassManagers.h

Devang Patel dpatel at apple.com
Wed May 2 14:41:31 PDT 2007



Changes in directory llvm/include/llvm:

PassManagers.h updated: 1.17 -> 1.18
---
Log message:

Use 'static const char' instead of 'static const int'.
Due to darwin gcc bug, one version of darwin linker coalesces 
static const int, which defauts PassID based pass identification.


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

 PassManagers.h |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)


Index: llvm/include/llvm/PassManagers.h
diff -u llvm/include/llvm/PassManagers.h:1.17 llvm/include/llvm/PassManagers.h:1.18
--- llvm/include/llvm/PassManagers.h:1.17	Tue May  1 16:15:46 2007
+++ llvm/include/llvm/PassManagers.h	Wed May  2 16:39:18 2007
@@ -336,7 +336,7 @@
 class FPPassManager : public ModulePass, public PMDataManager {
  
 public:
-  static const int ID;
+  static const char ID;
   explicit FPPassManager(int Depth) 
   : ModulePass((intptr_t)&ID), PMDataManager(Depth) { }
   






More information about the llvm-commits mailing list