From 3e04bb482bd6b7817bb8dea9061e1d9f2cc1ac79 Mon Sep 17 00:00:00 2001 From: Nate Begeman Date: Sat, 22 Apr 2006 23:52:35 +0000 Subject: Code cleanup associated with jump tables, thanks to Chris for noticing these. llvm-svn: 27950 --- llvm/lib/CodeGen/MachineFunction.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'llvm/lib/CodeGen/MachineFunction.cpp') 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); } -- cgit v1.1