diff options
author | Dale Johannesen <dalej@apple.com> | 2008-07-31 18:13:12 +0000 |
---|---|---|
committer | Dale Johannesen <dalej@apple.com> | 2008-07-31 18:13:12 +0000 |
commit | 7232464bdaae5e6e48986a1e3b9a95fac7aa7bdf (patch) | |
tree | 166cb00f2c381ac43ecabcebe51bcb240fcba217 /lib/Target/TargetMachine.cpp | |
parent | 75dcf08243d19a40d2e1cc12057bf9c00ca3df3b (diff) |
Add a flag to disable jump table generation (all
switches use the binary search algorithm) for
environments that don't support it. PPC64 JIT
is such an environment; turn the flag on for that.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@54248 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/TargetMachine.cpp')
-rw-r--r-- | lib/Target/TargetMachine.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/Target/TargetMachine.cpp b/lib/Target/TargetMachine.cpp index 0764968b23..600a120e86 100644 --- a/lib/Target/TargetMachine.cpp +++ b/lib/Target/TargetMachine.cpp @@ -39,6 +39,7 @@ namespace llvm { unsigned StackAlignment; bool RealignStack; bool VerboseAsm; + bool DisableJumpTables; } static cl::opt<bool, true> PrintCode("print-machineinstrs", @@ -156,6 +157,11 @@ AsmVerbose("asm-verbose", cl::desc("Add comments to directives."), cl::location(VerboseAsm), cl::init(false)); +static cl::opt<bool, true> +DisableSwitchTables(cl::Hidden, "disable-jump-tables", + cl::desc("Do not generate jump tables."), + cl::location(DisableJumpTables), + cl::init(false)); //--------------------------------------------------------------------------- // TargetMachine Class |