[llvm-commits] CVS: llvm/lib/Target/TargetData.cpp
Devang Patel
dpatel at apple.com
Tue May 1 14:17:45 PDT 2007
Changes in directory llvm/lib/Target:
TargetData.cpp updated: 1.107 -> 1.108
---
Log message:
Do not use typeinfo to identify pass in pass manager.
---
Diffs of the changes: (+3 -1)
TargetData.cpp | 4 +++-
1 files changed, 3 insertions(+), 1 deletion(-)
Index: llvm/lib/Target/TargetData.cpp
diff -u llvm/lib/Target/TargetData.cpp:1.107 llvm/lib/Target/TargetData.cpp:1.108
--- llvm/lib/Target/TargetData.cpp:1.107 Sun Apr 22 16:54:13 2007
+++ llvm/lib/Target/TargetData.cpp Tue May 1 16:15:46 2007
@@ -33,6 +33,7 @@
// Handle the Pass registration stuff necessary to use TargetData's.
namespace {
// Register the default SparcV9 implementation...
+ const int TargetData::ID = 0;
RegisterPass<TargetData> X("targetdata", "Target Data Layout");
}
@@ -221,7 +222,8 @@
}
}
-TargetData::TargetData(const Module *M) {
+TargetData::TargetData(const Module *M)
+ : ImmutablePass((intptr_t)&ID) {
init(M->getDataLayout());
}
More information about the llvm-commits
mailing list