diff options
author | Eric Christopher <echristo@gmail.com> | 2014-05-15 01:10:50 +0000 |
---|---|---|
committer | Eric Christopher <echristo@gmail.com> | 2014-05-15 01:10:50 +0000 |
commit | 475ac5d302ba84ac13d34a9215c29c1a38ca5690 (patch) | |
tree | 04ad263f42a75a3c7990f052edc7fac9961025bf /tools/llc | |
parent | afc6099348a77ec9c9b81fe90824975dca9f2d75 (diff) | |
download | llvm-475ac5d302ba84ac13d34a9215c29c1a38ca5690.tar.gz llvm-475ac5d302ba84ac13d34a9215c29c1a38ca5690.tar.bz2 llvm-475ac5d302ba84ac13d34a9215c29c1a38ca5690.tar.xz |
Unify command line handling of MCTargetOptions and remove extra
options and code. No functional change.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@208833 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/llc')
-rw-r--r-- | tools/llc/llc.cpp | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/tools/llc/llc.cpp b/tools/llc/llc.cpp index 712817d934..269a5df904 100644 --- a/tools/llc/llc.cpp +++ b/tools/llc/llc.cpp @@ -287,9 +287,6 @@ static int compileModule(char **argv, LLVMContext &Context) { assert(mod && "Should have exited if we didn't have a module!"); TargetMachine &Target = *target.get(); - if (EnableDwarfDirectory) - Target.setMCUseDwarfDirectory(true); - if (GenerateSoftFloatCalls) FloatABIForCalls = FloatABI::Soft; @@ -315,13 +312,10 @@ static int compileModule(char **argv, LLVMContext &Context) { // Override default to generate verbose assembly. Target.setAsmVerbosityDefault(true); - if (RelaxAll) { - if (FileType != TargetMachine::CGFT_ObjectFile) - errs() << argv[0] + if (RelaxAll.getNumOccurrences() > 0 && + FileType != TargetMachine::CGFT_ObjectFile) + errs() << argv[0] << ": warning: ignoring -mc-relax-all because filetype != obj"; - else - Target.setMCRelaxAll(true); - } { formatted_raw_ostream FOS(Out->os()); |