[llvm-commits] CVS: llvm/include/llvm/CodeGen/MachineJumpTableInfo.h
Jim Laskey
jlaskey at apple.com
Thu Dec 14 11:17:55 PST 2006
Changes in directory llvm/include/llvm/CodeGen:
MachineJumpTableInfo.h updated: 1.8 -> 1.9
---
Log message:
1. Tidy up jump table info.
2. Allow the jit to handle PIC relocable jump tables.
---
Diffs of the changes: (+6 -3)
MachineJumpTableInfo.h | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
Index: llvm/include/llvm/CodeGen/MachineJumpTableInfo.h
diff -u llvm/include/llvm/CodeGen/MachineJumpTableInfo.h:1.8 llvm/include/llvm/CodeGen/MachineJumpTableInfo.h:1.9
--- llvm/include/llvm/CodeGen/MachineJumpTableInfo.h:1.8 Sat Oct 28 13:21:51 2006
+++ llvm/include/llvm/CodeGen/MachineJumpTableInfo.h Thu Dec 14 13:17:33 2006
@@ -39,9 +39,11 @@
class MachineJumpTableInfo {
const TargetData *TD;
+ unsigned EntrySize;
std::vector<MachineJumpTableEntry> JumpTables;
public:
- MachineJumpTableInfo(const TargetData *td) : TD(td) {}
+ MachineJumpTableInfo(const TargetData *td, unsigned ES)
+ : TD(td), EntrySize(ES) {}
/// getJumpTableIndex - Create a new jump table or return an existing one.
///
@@ -77,8 +79,9 @@
return MadeChange;
}
- /// getEntrySize - returns the size of an individual field in a jump table
- unsigned getEntrySize() const;
+ /// getEntrySize - Returns the size of an individual field in a jump table.
+ ///
+ unsigned getEntrySize() const { return EntrySize; }
/// getAlignment - returns the target's preferred alignment for jump tables
unsigned getAlignment() const;
More information about the llvm-commits
mailing list