[llvm-commits] CVS: llvm/include/llvm/Transforms/RSProfiling.h

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



Changes in directory llvm/include/llvm/Transforms:

RSProfiling.h updated: 1.3 -> 1.4
---
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)

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


Index: llvm/include/llvm/Transforms/RSProfiling.h
diff -u llvm/include/llvm/Transforms/RSProfiling.h:1.3 llvm/include/llvm/Transforms/RSProfiling.h:1.4
--- llvm/include/llvm/Transforms/RSProfiling.h:1.3	Tue May  1 16:15:46 2007
+++ llvm/include/llvm/Transforms/RSProfiling.h	Wed May  2 16:39:18 2007
@@ -23,7 +23,7 @@
   /// this interface are expected to chain to other implementations, such that
   /// multiple profilers can be support simultaniously.
   struct RSProfilers : public ModulePass {
-    static const int ID; // Pass identification, replacement for typeinfo
+    static const char ID; // Pass identification, replacement for typeinfo
     RSProfilers() : ModulePass((intptr_t)&ID) {}
 
     /// isProfiling - This method returns true if the value passed it was 






More information about the llvm-commits mailing list