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/verify-uselistorder | |
parent | d01ee74ffad023328d7fc04c24238605e1935270 (diff) | |
download | llvm-657aad675aaa9a9283809d4e7d357099ead3316a.tar.gz |
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/verify-uselistorder')
-rw-r--r-- | tools/verify-uselistorder/verify-uselistorder.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/tools/verify-uselistorder/verify-uselistorder.cpp b/tools/verify-uselistorder/verify-uselistorder.cpp index c88df1c6669a..9d297fa030c3 100644 --- a/tools/verify-uselistorder/verify-uselistorder.cpp +++ b/tools/verify-uselistorder/verify-uselistorder.cpp @@ -131,7 +131,7 @@ bool TempFile::writeBitcode(const Module &M) const { return true; } - WriteBitcodeToFile(&M, OS); + WriteBitcodeToFile(&M, OS, /* ShouldPreserveUseListOrder */ true); return false; } @@ -542,10 +542,6 @@ int main(int argc, char **argv) { outs() << "*** verify-uselistorder ***\n"; // Can't verify if order isn't preserved. - if (!shouldPreserveBitcodeUseListOrder()) { - errs() << "warning: forcing -preserve-bc-uselistorder\n"; - setPreserveBitcodeUseListOrder(true); - } if (!shouldPreserveAssemblyUseListOrder()) { errs() << "warning: forcing -preserve-ll-uselistorder\n"; setPreserveAssemblyUseListOrder(true); |