Teach llvm-bcanalyzer to use one stream's BLOCKINFO to read another stream.

This allows streams that only use BLOCKINFO for debugging purposes to omit
the block entirely. As long as another stream is available with the correct
BLOCKINFO, the first stream can still be analyzed and dumped.

As part of this commit, BitstreamReader gets a move constructor and move
assignment operator, as well as a takeBlockInfo method.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@216826 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Jordan Rose
2014-08-30 17:07:55 +00:00
parent 3af13568fb
commit d421075d0c
7 changed files with 137 additions and 31 deletions
@@ -48,3 +48,5 @@ entry:
%2 = icmp eq i32 %1, %a
ret i1 %2
}
; CHECK: Stream type: LLVM IR