[llvm-commits] CVS: llvm/lib/Bytecode/Writer/Writer.cpp

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



Changes in directory llvm/lib/Bytecode/Writer:

Writer.cpp updated: 1.180 -> 1.181
---
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)

 Writer.cpp |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)


Index: llvm/lib/Bytecode/Writer/Writer.cpp
diff -u llvm/lib/Bytecode/Writer/Writer.cpp:1.180 llvm/lib/Bytecode/Writer/Writer.cpp:1.181
--- llvm/lib/Bytecode/Writer/Writer.cpp:1.180	Tue May  1 16:15:46 2007
+++ llvm/lib/Bytecode/Writer/Writer.cpp	Wed May  2 16:39:18 2007
@@ -47,7 +47,7 @@
 /// @brief The bytecode version number
 const unsigned BCVersionNum = 7;
 
-const int WriteBytecodePass::ID = 0;
+const char WriteBytecodePass::ID = 0;
 static RegisterPass<WriteBytecodePass> X("emitbytecode", "Bytecode Writer");
 
 STATISTIC(BytesWritten, "Number of bytecode bytes written");






More information about the llvm-commits mailing list