[llvm-commits] CVS: llvm/include/llvm/Target/TargetData.h

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



Changes in directory llvm/include/llvm/Target:

TargetData.h updated: 1.61 -> 1.62
---
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)

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


Index: llvm/include/llvm/Target/TargetData.h
diff -u llvm/include/llvm/Target/TargetData.h:1.61 llvm/include/llvm/Target/TargetData.h:1.62
--- llvm/include/llvm/Target/TargetData.h:1.61	Tue May  1 16:15:46 2007
+++ llvm/include/llvm/Target/TargetData.h	Wed May  2 16:39:18 2007
@@ -202,7 +202,7 @@
   /// requested alignment (if the global has one).
   unsigned getPreferredAlignmentLog(const GlobalVariable *GV) const;
 
-  static const int ID; // Pass identifcation, replacement for typeid
+  static const char ID; // Pass identifcation, replacement for typeid
 };
 
 /// StructLayout - used to lazily calculate structure layout information for a






More information about the llvm-commits mailing list