diff options
author | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2015-04-14 18:33:00 +0000 |
---|---|---|
committer | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2015-04-14 18:33:00 +0000 |
commit | d044549557efc225189f2eabba83d2d02ff58ea7 (patch) | |
tree | 798b8874fcf397f62a8d5c802119d836a30f0612 /tools/opt | |
parent | 8922be32e97932ac62edbd64d31212226ee20efc (diff) |
IR: Set -preserve-bc-uselistorder=false by default
But keep it on by default in `llvm-as`, `opt`, `bugpoint`, `llvm-link`,
`llvm-extract`, and `LTOCodeGenerator`. Part of PR5680.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@234921 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/opt')
-rw-r--r-- | tools/opt/opt.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/opt/opt.cpp b/tools/opt/opt.cpp index af86e2dbd60..b0951a4887e 100644 --- a/tools/opt/opt.cpp +++ b/tools/opt/opt.cpp @@ -30,6 +30,7 @@ #include "llvm/IR/LLVMContext.h" #include "llvm/IR/LegacyPassNameParser.h" #include "llvm/IR/Module.h" +#include "llvm/IR/UseListOrder.h" #include "llvm/IR/Verifier.h" #include "llvm/IRReader/IRReader.h" #include "llvm/InitializePasses.h" @@ -344,6 +345,10 @@ int main(int argc, char **argv) { polly::initializePollyPasses(Registry); #endif + // Turn on -preserve-bc-uselistorder by default, but let the command-line + // override it. + setPreserveBitcodeUseListOrder(true); + cl::ParseCommandLineOptions(argc, argv, "llvm .bc -> .bc modular optimizer and analysis printer\n"); |