diff options
author | Evan Cheng <evan.cheng@apple.com> | 2011-04-07 00:58:44 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2011-04-07 00:58:44 +0000 |
commit | 2c69f8eec6a51114799e3e80fa4903c5e3fc429c (patch) | |
tree | 9fa488c8ce9dc402a57a02b3616aefc007bc12b8 /lib/Target/TargetMachine.cpp | |
parent | 1adb47cc11e708e6009007eeab58caf4310df30f (diff) |
Change -arm-divmod-libcall to a target neutral option.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@129045 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 681842ea6b..8c7330a77c 100644 --- a/lib/Target/TargetMachine.cpp +++ b/lib/Target/TargetMachine.cpp @@ -48,6 +48,7 @@ namespace llvm { bool RealignStack; bool DisableJumpTables; bool StrongPHIElim; + bool HasDivModLibcall; bool AsmVerbosityDefault(false); } @@ -205,6 +206,11 @@ EnableStrongPHIElim(cl::Hidden, "strong-phi-elim", cl::desc("Use strong PHI elimination."), cl::location(StrongPHIElim), cl::init(false)); +static cl::opt<bool, true> +UseDivMod("use-divmod-libcall", + cl::desc("Use __{u}divmod libcalls for div / rem pairs"), + cl::location(HasDivModLibcall), + cl::init(false)); static cl::opt<bool> DataSections("fdata-sections", cl::desc("Emit data into separate sections"), |