diff options
author | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2015-04-15 00:10:50 +0000 |
---|---|---|
committer | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2015-04-15 00:10:50 +0000 |
commit | 657aad675aaa9a9283809d4e7d357099ead3316a (patch) | |
tree | f50fdefe3b7aa8fd5f076f61f6dda0eb8395b24e /tools/llvm-link | |
parent | d01ee74ffad023328d7fc04c24238605e1935270 (diff) |
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.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@234957 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/llvm-link')
-rw-r--r-- | tools/llvm-link/llvm-link.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/llvm-link/llvm-link.cpp b/tools/llvm-link/llvm-link.cpp index 5f1dccb378a..daffec9371d 100644 --- a/tools/llvm-link/llvm-link.cpp +++ b/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(); |