[llvm-commits] CVS: llvm/lib/Target/IA64/IA64Bundling.cpp
Devang Patel
dpatel at apple.com
Tue May 1 14:17:57 PDT 2007
Changes in directory llvm/lib/Target/IA64:
IA64Bundling.cpp updated: 1.8 -> 1.9
---
Log message:
Do not use typeinfo to identify pass in pass manager.
---
Diffs of the changes: (+4 -1)
IA64Bundling.cpp | 5 ++++-
1 files changed, 4 insertions(+), 1 deletion(-)
Index: llvm/lib/Target/IA64/IA64Bundling.cpp
diff -u llvm/lib/Target/IA64/IA64Bundling.cpp:1.8 llvm/lib/Target/IA64/IA64Bundling.cpp:1.9
--- llvm/lib/Target/IA64/IA64Bundling.cpp:1.8 Mon Apr 16 13:10:23 2007
+++ llvm/lib/Target/IA64/IA64Bundling.cpp Tue May 1 16:15:46 2007
@@ -36,12 +36,14 @@
namespace {
struct IA64BundlingPass : public MachineFunctionPass {
+ static const int ID;
/// Target machine description which we query for reg. names, data
/// layout, etc.
///
IA64TargetMachine &TM;
- IA64BundlingPass(IA64TargetMachine &tm) : TM(tm) { }
+ IA64BundlingPass(IA64TargetMachine &tm)
+ : MachineFunctionPass((intptr_t)&ID), TM(tm) { }
virtual const char *getPassName() const {
return "IA64 (Itanium) Bundling Pass";
@@ -61,6 +63,7 @@
// 'fallthrough' code
std::set<unsigned> PendingRegWrites;
};
+ const int IA64BundlingPass::ID = 0;
} // end of anonymous namespace
/// createIA64BundlingPass - Returns a pass that adds STOP (;;) instructions
More information about the llvm-commits
mailing list