[llvm-commits] CVS: llvm/lib/Target/IA64/IA64Bundling.cpp

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



Changes in directory llvm/lib/Target/IA64:

IA64Bundling.cpp updated: 1.9 -> 1.10
---
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:  (+2 -2)

 IA64Bundling.cpp |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)


Index: llvm/lib/Target/IA64/IA64Bundling.cpp
diff -u llvm/lib/Target/IA64/IA64Bundling.cpp:1.9 llvm/lib/Target/IA64/IA64Bundling.cpp:1.10
--- llvm/lib/Target/IA64/IA64Bundling.cpp:1.9	Tue May  1 16:15:46 2007
+++ llvm/lib/Target/IA64/IA64Bundling.cpp	Wed May  2 16:39:19 2007
@@ -36,7 +36,7 @@
 
 namespace {
   struct IA64BundlingPass : public MachineFunctionPass {
-    static const int ID;
+    static const char ID;
     /// Target machine description which we query for reg. names, data
     /// layout, etc.
     ///
@@ -63,7 +63,7 @@
     // 'fallthrough' code
     std::set<unsigned> PendingRegWrites;
   };
-  const int IA64BundlingPass::ID = 0;
+  const char IA64BundlingPass::ID = 0;
 } // end of anonymous namespace
 
 /// createIA64BundlingPass - Returns a pass that adds STOP (;;) instructions






More information about the llvm-commits mailing list