summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-link/llvm-link.cpp
diff options
context:
space:
mode:
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>2015-04-15 00:10:50 +0000
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>2015-04-15 00:10:50 +0000
commita052ed6381f15a78e6e49a665b255234762fa15a (patch)
tree1df677ad82d7ff85ce6b3b3358aca9ad330371b4 /llvm/tools/llvm-link/llvm-link.cpp
parent458593a4571dae5bcb9039ef59b47cf44ed3e3a1 (diff)
downloadbcm5719-llvm-a052ed6381f15a78e6e49a665b255234762fa15a.tar.gz
bcm5719-llvm-a052ed6381f15a78e6e49a665b255234762fa15a.zip
uselistorder: Pull the bit through WriteToBitcodFile()
Change the callers of `WriteToBitcodeFile()` to pass `true` or `shouldPreserveBitcodeUseListOrder()` explicitly. I left the callers that want to send `false` alone. I'll keep pushing the bit higher until hopefully I can delete the global `cl::opt` entirely. llvm-svn: 234957
Diffstat (limited to 'llvm/tools/llvm-link/llvm-link.cpp')
-rw-r--r--llvm/tools/llvm-link/llvm-link.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/tools/llvm-link/llvm-link.cpp b/llvm/tools/llvm-link/llvm-link.cpp
index 5f1dccb378a..daffec9371d 100644
--- a/llvm/tools/llvm-link/llvm-link.cpp
+++ b/llvm/tools/llvm-link/llvm-link.cpp
@@ -152,7 +152,8 @@ int main(int argc, char **argv) {
if (OutputAssembly) {
Out.os() << *Composite;
} else if (Force || !CheckBitcodeOutputToConsole(Out.os(), true))
- WriteBitcodeToFile(Composite.get(), Out.os());
+ WriteBitcodeToFile(Composite.get(), Out.os(),
+ shouldPreserveBitcodeUseListOrder());
// Declare success.
Out.keep();
OpenPOWER on IntegriCloud