[llvm-commits] CVS: llvm/lib/Target/TargetInstrInfo.cpp
Evan Cheng
evan.cheng at apple.com
Wed May 16 16:54:02 PDT 2007
Changes in directory llvm/lib/Target:
TargetInstrInfo.cpp updated: 1.28 -> 1.29
---
Log message:
Default implementation of TargetInstrInfo::getBlockSize().
---
Diffs of the changes: (+4 -0)
TargetInstrInfo.cpp | 4 ++++
1 files changed, 4 insertions(+)
Index: llvm/lib/Target/TargetInstrInfo.cpp
diff -u llvm/lib/Target/TargetInstrInfo.cpp:1.28 llvm/lib/Target/TargetInstrInfo.cpp:1.29
--- llvm/lib/Target/TargetInstrInfo.cpp:1.28 Wed May 16 16:52:35 2007
+++ llvm/lib/Target/TargetInstrInfo.cpp Wed May 16 18:53:44 2007
@@ -84,3 +84,7 @@
}
return MadeChange;
}
+
+unsigned TargetInstrInfo::getBlockSize(MachineBasicBlock *MBB) const {
+ return (unsigned)std::distance(MBB->begin(), MBB->end());
+}
More information about the llvm-commits
mailing list