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 | c31eb205c18ab0703b0df49739a1e431ad22386d (patch) | |
tree | c7fe588f029057a8273d52fd48dc28d85396beb8 /llvm/lib/Target/TargetMachine.cpp | |
parent | e5b40a9112de2bdbb9ac3ab360f0b0a50d06752b (diff) | |
download | llvm-c31eb205c18ab0703b0df49739a1e431ad22386d.zip llvm-c31eb205c18ab0703b0df49739a1e431ad22386d.tar.gz llvm-c31eb205c18ab0703b0df49739a1e431ad22386d.tar.bz2 |
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.
llvm-svn: 54248
Diffstat (limited to 'llvm/lib/Target/TargetMachine.cpp')
-rw-r--r-- | llvm/lib/Target/TargetMachine.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/lib/Target/TargetMachine.cpp b/llvm/lib/Target/TargetMachine.cpp index 0764968b2..600a120 100644 --- a/llvm/lib/Target/TargetMachine.cpp +++ b/llvm/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 |