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

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



Changes in directory llvm/include/llvm/Transforms/Utils:

UnifyFunctionExitNodes.h updated: 1.21 -> 1.22
---
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)

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


Index: llvm/include/llvm/Transforms/Utils/UnifyFunctionExitNodes.h
diff -u llvm/include/llvm/Transforms/Utils/UnifyFunctionExitNodes.h:1.21 llvm/include/llvm/Transforms/Utils/UnifyFunctionExitNodes.h:1.22
--- llvm/include/llvm/Transforms/Utils/UnifyFunctionExitNodes.h:1.21	Tue May  1 16:15:46 2007
+++ llvm/include/llvm/Transforms/Utils/UnifyFunctionExitNodes.h	Wed May  2 16:39:18 2007
@@ -25,7 +25,7 @@
 struct UnifyFunctionExitNodes : public FunctionPass {
   BasicBlock *ReturnBlock, *UnwindBlock, *UnreachableBlock;
 public:
-  static const int ID; // Pass identifcation, replacement for typeid
+  static const char ID; // Pass identifcation, replacement for typeid
   UnifyFunctionExitNodes() : FunctionPass((intptr_t)&ID),
                              ReturnBlock(0), UnwindBlock(0) {}
 






More information about the llvm-commits mailing list