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 02:38:06 +0000
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>2015-04-15 02:38:06 +0000
commit8a74f6846d4f0844cf6125746571c10748934c8c (patch)
treec898a38ce1f6fee55e44f7adf4fc6f904f694987 /llvm/tools/llvm-extract/llvm-extract.cpp
parentc4f0a325a7a1dde8780a740bca06705df3d7f58e (diff)
downloadbcm5719-llvm-8a74f6846d4f0844cf6125746571c10748934c8c.tar.gz
bcm5719-llvm-8a74f6846d4f0844cf6125746571c10748934c8c.zip
uselistorder: Pull the bit through PrintModulePass
Now the callers of `PrintModulePass()` (etc.) that care about use-list order in assembly pass in the flag. llvm-svn: 234969
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 d67b41bea21..1a477934357 100644
--- a/llvm/tools/llvm-extract/llvm-extract.cpp
+++ b/llvm/tools/llvm-extract/llvm-extract.cpp
@@ -270,7 +270,8 @@ int main(int argc, char **argv) {
}
if (OutputAssembly)
- Passes.add(createPrintModulePass(Out.os()));
+ Passes.add(createPrintModulePass(Out.os(), "",
+ shouldPreserveAssemblyUseListOrder()));
else if (Force || !CheckBitcodeOutputToConsole(Out.os(), true))
Passes.add(
createBitcodeWriterPass(Out.os(), shouldPreserveBitcodeUseListOrder()));
OpenPOWER on IntegriCloud