uselistorder: Remove the global bits
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Wed, 15 Apr 2015 03:14:06 +0000 (03:14 +0000)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Wed, 15 Apr 2015 03:14:06 +0000 (03:14 +0000)
commit8d61ee9e7df8ca3a3194dca4f1d16a5e731c1f07
treec34367bce2bc7c3f63c0f8462968c4a828977031
parent49b5acf6581892758a98fc57d87756fd31f163fb
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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@234973 91177308-0d34-0410-b5e6-96231b3b80d8
12 files changed:
include/llvm/IR/UseListOrder.h
lib/Bitcode/Writer/BitcodeWriterPass.cpp
lib/IR/CMakeLists.txt
lib/IR/UseListOrder.cpp [deleted file]
lib/LTO/LTOCodeGenerator.cpp
tools/bugpoint/OptimizerDriver.cpp
tools/bugpoint/bugpoint.cpp
tools/llvm-as/llvm-as.cpp
tools/llvm-dis/llvm-dis.cpp
tools/llvm-extract/llvm-extract.cpp
tools/llvm-link/llvm-link.cpp
tools/opt/opt.cpp