[llvm-commits] CVS: llvm/include/llvm/Bytecode/WriteBytecodePass.h
Devang Patel
dpatel at apple.com
Wed May 2 14:41:29 PDT 2007
Changes in directory llvm/include/llvm/Bytecode:
WriteBytecodePass.h updated: 1.20 -> 1.21
---
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)
WriteBytecodePass.h | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
Index: llvm/include/llvm/Bytecode/WriteBytecodePass.h
diff -u llvm/include/llvm/Bytecode/WriteBytecodePass.h:1.20 llvm/include/llvm/Bytecode/WriteBytecodePass.h:1.21
--- llvm/include/llvm/Bytecode/WriteBytecodePass.h:1.20 Tue May 1 16:15:46 2007
+++ llvm/include/llvm/Bytecode/WriteBytecodePass.h Wed May 2 16:39:18 2007
@@ -26,7 +26,7 @@
bool DeleteStream;
bool CompressFile;
public:
- static const int ID; // Pass identifcation, replacement for typeid
+ static const char ID; // Pass identifcation, replacement for typeid
WriteBytecodePass()
: ModulePass((intptr_t) &ID), Out(&cout), DeleteStream(false),
CompressFile(false) {}
More information about the llvm-commits
mailing list