summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-extract/llvm-extract.cpp
diff options
context:
space:
mode:
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>2015-04-15 00:34:24 +0000
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>2015-04-15 00:34:24 +0000
commit679db3345ce642749cd5fc7181a508982b353022 (patch)
treee96f9726b74843c685c21db1faf88030091a5a85 /llvm/tools/llvm-extract/llvm-extract.cpp
parente406c84e3004530c0fd008f4b1121dcce034f82d (diff)
downloadbcm5719-llvm-679db3345ce642749cd5fc7181a508982b353022.tar.gz
bcm5719-llvm-679db3345ce642749cd5fc7181a508982b353022.zip
uselistorder: Pull bit through BitcodeWriterPass
Now the callers of `BitcodeWriterPass` decide whether or not to preserve bitcode use-list order. llvm-svn: 234959
Diffstat (limited to 'llvm/tools/llvm-extract/llvm-extract.cpp')
-rw-r--r--llvm/tools/llvm-extract/llvm-extract.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/tools/llvm-extract/llvm-extract.cpp b/llvm/tools/llvm-extract/llvm-extract.cpp
index 443ee653c8e..d67b41bea21 100644
--- a/llvm/tools/llvm-extract/llvm-extract.cpp
+++ b/llvm/tools/llvm-extract/llvm-extract.cpp
@@ -272,7 +272,8 @@ int main(int argc, char **argv) {
if (OutputAssembly)
Passes.add(createPrintModulePass(Out.os()));
else if (Force || !CheckBitcodeOutputToConsole(Out.os(), true))
- Passes.add(createBitcodeWriterPass(Out.os()));
+ Passes.add(
+ createBitcodeWriterPass(Out.os(), shouldPreserveBitcodeUseListOrder()));
Passes.run(*M.get());
OpenPOWER on IntegriCloud