Changes in directory llvm/include/llvm/CodeGen:
MachineCodeEmitter.h updated: 1.29 -> 1.30 MachineJumpTableInfo.h updated: 1.1 -> 1.2 --- Log message: Code cleanup associated with jump tables, thanks to Chris for noticing these. --- Diffs of the changes: (+11 -9) MachineCodeEmitter.h | 12 ++++++------ MachineJumpTableInfo.h | 8 +++++--- 2 files changed, 11 insertions(+), 9 deletions(-) Index: llvm/include/llvm/CodeGen/MachineCodeEmitter.h diff -u llvm/include/llvm/CodeGen/MachineCodeEmitter.h:1.29 llvm/include/llvm/CodeGen/MachineCodeEmitter.h:1.30 --- llvm/include/llvm/CodeGen/MachineCodeEmitter.h:1.29 Sat Apr 22 13:53:45 2006 +++ llvm/include/llvm/CodeGen/MachineCodeEmitter.h Sat Apr 22 18:52:35 2006 @@ -102,14 +102,14 @@ /// noted with this interface. virtual void addRelocation(const MachineRelocation &MR) = 0; - // getConstantPoolEntryAddress - Return the address of the 'Index' entry in - // the constant pool that was last emitted with the 'emitConstantPool' method. - // + /// getConstantPoolEntryAddress - Return the address of the 'Index' entry in + /// the constant pool that was last emitted with the emitConstantPool method. + /// virtual uint64_t getConstantPoolEntryAddress(unsigned Index) = 0; - // getJumpTablelEntryAddress - Return the address of the jump table with index - // 'Index' in the function that last called initJumpTableInfo. - // + /// getJumpTableEntryAddress - Return the address of the jump table with index + /// 'Index' in the function that last called initJumpTableInfo. + /// virtual uint64_t getJumpTableEntryAddress(unsigned Index) = 0; // allocateGlobal - Allocate some space for a global variable. Index: llvm/include/llvm/CodeGen/MachineJumpTableInfo.h diff -u llvm/include/llvm/CodeGen/MachineJumpTableInfo.h:1.1 llvm/include/llvm/CodeGen/MachineJumpTableInfo.h:1.2 --- llvm/include/llvm/CodeGen/MachineJumpTableInfo.h:1.1 Sat Apr 22 13:53:45 2006 +++ llvm/include/llvm/CodeGen/MachineJumpTableInfo.h Sat Apr 22 18:52:35 2006 @@ -20,7 +20,6 @@ #ifndef LLVM_CODEGEN_MACHINEJUMPTABLEINFO_H #define LLVM_CODEGEN_MACHINEJUMPTABLEINFO_H -#include "llvm/Target/TargetData.h" #include <vector> #include <iosfwd> @@ -55,8 +54,11 @@ return JumpTables; } - unsigned getEntrySize() const { return TD.getPointerSize(); } - unsigned getAlignment() const { return TD.getPointerAlignment(); } + /// getEntrySize - returns the size of an individual field in a jump table + unsigned getEntrySize() const; + + /// getAlignment - returns the target's preferred alignment for jump tables + unsigned getAlignment() const; /// print - Used by the MachineFunction printer to print information about /// jump tables. Implemented in MachineFunction.cpp _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits