aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/CodeGen/MachineJumpTableInfo.h
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 /include/llvm/CodeGen/MachineJumpTableInfo.h
parent05f9466cf0f4f47803af7283f7708cb25f4da889 (diff)
downloadexternal_llvm-3700a4d3a27ca8d39c73049020623cf4963d6c13.tar.gz
external_llvm-3700a4d3a27ca8d39c73049020623cf4963d6c13.tar.bz2
external_llvm-3700a4d3a27ca8d39c73049020623cf4963d6c13.zip
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 'include/llvm/CodeGen/MachineJumpTableInfo.h')
-rw-r--r--include/llvm/CodeGen/MachineJumpTableInfo.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/include/llvm/CodeGen/MachineJumpTableInfo.h b/include/llvm/CodeGen/MachineJumpTableInfo.h
index 192fb65542..2cb268ad53 100644
--- a/include/llvm/CodeGen/MachineJumpTableInfo.h
+++ b/include/llvm/CodeGen/MachineJumpTableInfo.h
@@ -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 @@ public:
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