diff options
author | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2015-04-15 03:14:06 +0000 |
---|---|---|
committer | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2015-04-15 03:14:06 +0000 |
commit | 8a7b84b4d042ea68342cf6cec87c35aeff7bf106 (patch) | |
tree | 955f1a28b9cfd361335f2abb80687920e692f91d /llvm/lib/LTO/LTOCodeGenerator.cpp | |
parent | fda02091e615ef5bfd24b96894aef72d674cfaaf (diff) | |
download | bcm5719-llvm-8a7b84b4d042ea68342cf6cec87c35aeff7bf106.tar.gz bcm5719-llvm-8a7b84b4d042ea68342cf6cec87c35aeff7bf106.zip |
uselistorder: Remove the global bits
Remove all the global bits to do with preserving use-list order by
moving the `cl::opt`s to the individual tools that want them. There's a
minor functionality change to `libLTO`, in that you can't send in
`-preserve-bc-uselistorder=false`, but making that bit settable (if it's
worth doing) should be through explicit LTO API.
As a drive-by fix, I removed some includes of `UseListOrder.h` that were
made unnecessary by recent commits.
llvm-svn: 234973
Diffstat (limited to 'llvm/lib/LTO/LTOCodeGenerator.cpp')
-rw-r--r-- | llvm/lib/LTO/LTOCodeGenerator.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/llvm/lib/LTO/LTOCodeGenerator.cpp b/llvm/lib/LTO/LTOCodeGenerator.cpp index c9ff5b2d019..b4a70119cc2 100644 --- a/llvm/lib/LTO/LTOCodeGenerator.cpp +++ b/llvm/lib/LTO/LTOCodeGenerator.cpp @@ -29,7 +29,6 @@ #include "llvm/IR/LegacyPassManager.h" #include "llvm/IR/Mangler.h" #include "llvm/IR/Module.h" -#include "llvm/IR/UseListOrder.h" #include "llvm/IR/Verifier.h" #include "llvm/InitializePasses.h" #include "llvm/LTO/LTOModule.h" @@ -216,7 +215,7 @@ bool LTOCodeGenerator::writeMergedModules(const char *path, // write bitcode to it WriteBitcodeToFile(IRLinker.getModule(), Out.os(), - shouldPreserveBitcodeUseListOrder()); + /* ShouldPreserveUseListOrder */ true); Out.os().close(); if (Out.os().has_error()) { @@ -606,10 +605,6 @@ void LTOCodeGenerator::setCodeGenDebugOptions(const char *options) { } void LTOCodeGenerator::parseCodeGenDebugOptions() { - // Turn on -preserve-bc-uselistorder by default, but let the command-line - // override it. - setPreserveBitcodeUseListOrder(true); - // if options were requested, set them if (!CodegenOptions.empty()) cl::ParseCommandLineOptions(CodegenOptions.size(), |