aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineFunction.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-01-26 04:05:28 +0000
committerChris Lattner <sabre@nondot.org>2010-01-26 04:05:28 +0000
commit5fc4160ea3d641dc174232d6ea5248c5d355095c (patch)
treebc2b7041aaecf60811dccc9aa34baf437c888d37 /llvm/lib/CodeGen/MachineFunction.cpp
parent20bbbd489bf1b66e079f39708406148bcbb65b06 (diff)
downloadllvm-5fc4160ea3d641dc174232d6ea5248c5d355095c.zip
llvm-5fc4160ea3d641dc174232d6ea5248c5d355095c.tar.gz
llvm-5fc4160ea3d641dc174232d6ea5248c5d355095c.tar.bz2
Add support for target-specific 32-bit custom-lowered
jump table entries. llvm-svn: 94505
Diffstat (limited to 'llvm/lib/CodeGen/MachineFunction.cpp')
-rw-r--r--llvm/lib/CodeGen/MachineFunction.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/MachineFunction.cpp b/llvm/lib/CodeGen/MachineFunction.cpp
index bea0445..cf3b8f0 100644
--- a/llvm/lib/CodeGen/MachineFunction.cpp
+++ b/llvm/lib/CodeGen/MachineFunction.cpp
@@ -544,6 +544,7 @@ unsigned MachineJumpTableInfo::getEntrySize(const TargetData &TD) const {
return TD.getPointerSize();
case MachineJumpTableInfo::EK_GPRel32BlockAddress:
case MachineJumpTableInfo::EK_LabelDifference32:
+ case MachineJumpTableInfo::EK_Custom32:
return 4;
}
assert(0 && "Unknown jump table encoding!");
@@ -560,6 +561,7 @@ unsigned MachineJumpTableInfo::getEntryAlignment(const TargetData &TD) const {
return TD.getPointerABIAlignment();
case MachineJumpTableInfo::EK_GPRel32BlockAddress:
case MachineJumpTableInfo::EK_LabelDifference32:
+ case MachineJumpTableInfo::EK_Custom32:
return TD.getABIIntegerTypeAlignment(32);
}
assert(0 && "Unknown jump table encoding!");