[llvm-bcanalyzer] Dump bitcode wrapper header
authorAkira Hatanaka <ahatanaka@apple.com>
Fri, 29 Jan 2016 05:55:09 +0000 (05:55 +0000)
committerAkira Hatanaka <ahatanaka@apple.com>
Fri, 29 Jan 2016 05:55:09 +0000 (05:55 +0000)
commit4f472a886782431387d55f234584080f3a4f9a96
tree9b919230f180fbc0b55983c17e946ae2cea755d4
parentf2bb710da516001a14ce9074c5ca1b8313426bce
[llvm-bcanalyzer] Dump bitcode wrapper header

This patch enables llvm-bcanalyzer to print the bitcode wrapper header
if the file has one, which is needed to test the changes made in
r258627 (bitcode-wrapper-header-armv7m.ll is the test case for r258627).

Differential Revision: http://reviews.llvm.org/D16642

llvm-svn: 259162
llvm/include/llvm/Bitcode/ReaderWriter.h
llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
llvm/test/Bitcode/bitcode-wrapper-header-armv7m.ll [new file with mode: 0644]
llvm/test/Bitcode/bitcode-wrapper-header-x86_64.ll [new file with mode: 0644]
llvm/tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp