[llvm-commits] CVS: llvm/include/llvm/CodeGen/MachineJumpTableInfo.h

Jim Laskey jlaskey at apple.com
Thu Dec 14 13:03:32 PST 2006



Changes in directory llvm/include/llvm/CodeGen:

MachineJumpTableInfo.h updated: 1.9 -> 1.10
---
Log message:

File missing from last check in.

---
Diffs of the changes:  (+4 -4)

 MachineJumpTableInfo.h |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)


Index: llvm/include/llvm/CodeGen/MachineJumpTableInfo.h
diff -u llvm/include/llvm/CodeGen/MachineJumpTableInfo.h:1.9 llvm/include/llvm/CodeGen/MachineJumpTableInfo.h:1.10
--- llvm/include/llvm/CodeGen/MachineJumpTableInfo.h:1.9	Thu Dec 14 13:17:33 2006
+++ llvm/include/llvm/CodeGen/MachineJumpTableInfo.h	Thu Dec 14 15:03:17 2006
@@ -38,12 +38,12 @@
 };
   
 class MachineJumpTableInfo {
-  const TargetData *TD;
   unsigned EntrySize;
+  unsigned Alignment;
   std::vector<MachineJumpTableEntry> JumpTables;
 public:
-  MachineJumpTableInfo(const TargetData *td, unsigned ES)
-  : TD(td), EntrySize(ES) {}
+  MachineJumpTableInfo(unsigned Size, unsigned Align)
+  : EntrySize(Size), Alignment(Align) {}
     
   /// getJumpTableIndex - Create a new jump table or return an existing one.
   ///
@@ -84,7 +84,7 @@
   unsigned getEntrySize() const { return EntrySize; }
   
   /// getAlignment - returns the target's preferred alignment for jump tables
-  unsigned getAlignment() const;
+  unsigned getAlignment() const { return Alignment; }
   
   /// print - Used by the MachineFunction printer to print information about
   /// jump tables.  Implemented in MachineFunction.cpp






More information about the llvm-commits mailing list