summaryrefslogtreecommitdiff
path: root/lib/CodeGen
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
commit3700a4d3a27ca8d39c73049020623cf4963d6c13 (patch)
treed4c908c2c36e4e9baf8eeebdc04cc08a704b6ce0 /lib/CodeGen
parent05f9466cf0f4f47803af7283f7708cb25f4da889 (diff)
downloadllvm-3700a4d3a27ca8d39c73049020623cf4963d6c13.tar.gz
llvm-3700a4d3a27ca8d39c73049020623cf4963d6c13.tar.bz2
llvm-3700a4d3a27ca8d39c73049020623cf4963d6c13.tar.xz
Code cleanup associated with jump tables, thanks to Chris for noticing
these. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27950 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen')
-rw-r--r--lib/CodeGen/MachineFunction.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/CodeGen/MachineFunction.cpp b/lib/CodeGen/MachineFunction.cpp
index da89ea1821..6d66839e2f 100644
--- a/lib/CodeGen/MachineFunction.cpp
+++ b/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); }