Try to fix a layering violation introduced by r213945
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Fri, 25 Jul 2014 15:41:49 +0000 (15:41 +0000)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Fri, 25 Jul 2014 15:41:49 +0000 (15:41 +0000)
commitdeb8e3091302f7f62fadc939575f561c7d44f9d0
tree020ca0dec24d37f580a247037d658499b86b6a6f
parentd8d3b4dc61004dd1d5f6d868c54b02a65c7b08e5
Try to fix a layering violation introduced by r213945

The dragonegg buildbot (and others?) started failing after
r213945/r213946 because `llvm-as` wasn't linking in the bitcode reader.
I think moving the verify functions to the same file as the verify pass
should fix the build.  Adding a command-line option for maintaining
use-list order in assembly as a drive-by to prevent warnings about
unused static functions.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@213947 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/IR/UseListOrder.h
lib/IR/UseListOrder.cpp
lib/Transforms/IPO/VerifyUseListOrder.cpp