aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineFunction.cpp
diff options
context:
space:
mode:
authorNate Begeman <natebegeman@mac.com>2006-04-22 23:52:35 +0000
committerNate Begeman <natebegeman@mac.com>2006-04-22 23:52:35 +0000
commit3e04bb482bd6b7817bb8dea9061e1d9f2cc1ac79 (patch)
tree0e4173992c8d881fa0a6d9164ebe82000cddaff2 /llvm/lib/CodeGen/MachineFunction.cpp
parentecb1dafd3d252399f29e8326753be48be95335a0 (diff)
downloadllvm-3e04bb482bd6b7817bb8dea9061e1d9f2cc1ac79.zip
llvm-3e04bb482bd6b7817bb8dea9061e1d9f2cc1ac79.tar.gz
llvm-3e04bb482bd6b7817bb8dea9061e1d9f2cc1ac79.tar.bz2
Code cleanup associated with jump tables, thanks to Chris for noticing
these. llvm-svn: 27950
Diffstat (limited to 'llvm/lib/CodeGen/MachineFunction.cpp')
-rw-r--r--llvm/lib/CodeGen/MachineFunction.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/MachineFunction.cpp b/llvm/lib/CodeGen/MachineFunction.cpp
index da89ea1..6d66839 100644
--- a/llvm/lib/CodeGen/MachineFunction.cpp
+++ b/llvm/lib/CodeGen/MachineFunction.cpp
@@ -366,6 +366,14 @@ void MachineJumpTableInfo::print(std::ostream &OS) const {
}
}
+unsigned MachineJumpTableInfo::getEntrySize() const {
+ return TD.getPointerSize();
+}
+
+unsigned MachineJumpTableInfo::getAlignment() const {
+ return TD.getPointerAlignment();
+}
+
void MachineJumpTableInfo::dump() const { print(std::cerr); }