Split Bitcode/ReaderWriter.h into separate reader and writer headers
authorTeresa Johnson <tejohnson@google.com>
Fri, 11 Nov 2016 05:34:58 +0000 (05:34 +0000)
committerTeresa Johnson <tejohnson@google.com>
Fri, 11 Nov 2016 05:34:58 +0000 (05:34 +0000)
commitad17679abdeb430af6bbb6778e7f09c9b4751695
treeecc932e8a6d4da39dadd437c4e237931b83b2fdc
parent665be50e37b370f17e0dcaad79f7bd64af4614cc
Split Bitcode/ReaderWriter.h into separate reader and writer headers

Summary:
Split ReaderWriter.h which contains the APIs into both the BitReader and
BitWriter libraries into BitcodeReader.h and BitcodeWriter.h.

This is to address Chandler's concern about sharing the same API header
between multiple libraries (BitReader and BitWriter). That concern is
why we create a single bitcode library in our downstream build of clang,
which led to r286297 being reverted as it added a dependency that
created a cycle only when there is a single bitcode library (not two as
in upstream).

Reviewers: mehdi_amini

Subscribers: dlj, mehdi_amini, llvm-commits

Differential Revision: https://reviews.llvm.org/D26502

llvm-svn: 286566
29 files changed:
llvm/include/llvm/Bitcode/BitCodes.h
llvm/include/llvm/Bitcode/BitcodeReader.h [moved from llvm/include/llvm/Bitcode/ReaderWriter.h with 74% similarity]
llvm/lib/Bitcode/Reader/BitReader.cpp
llvm/lib/Bitcode/Reader/BitcodeReader.cpp
llvm/lib/Bitcode/Writer/BitWriter.cpp
llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
llvm/lib/Bitcode/Writer/BitcodeWriterPass.cpp
llvm/lib/CodeGen/ParallelCG.cpp
llvm/lib/IR/Core.cpp
llvm/lib/IRReader/IRReader.cpp
llvm/lib/LTO/LTO.cpp
llvm/lib/LTO/LTOBackend.cpp
llvm/lib/LTO/LTOCodeGenerator.cpp
llvm/lib/LTO/LTOModule.cpp
llvm/lib/LTO/ThinLTOCodeGenerator.cpp
llvm/lib/Object/IRObjectFile.cpp
llvm/lib/Object/ModuleSummaryIndexObjectFile.cpp
llvm/tools/bugpoint/OptimizerDriver.cpp
llvm/tools/gold/gold-plugin.cpp
llvm/tools/lli/lli.cpp
llvm/tools/llvm-as/llvm-as.cpp
llvm/tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp
llvm/tools/llvm-dis/llvm-dis.cpp
llvm/tools/llvm-link/llvm-link.cpp
llvm/tools/llvm-lto/llvm-lto.cpp
llvm/tools/llvm-split/llvm-split.cpp
llvm/tools/lto/lto.cpp
llvm/tools/verify-uselistorder/verify-uselistorder.cpp
llvm/unittests/Bitcode/BitReaderTest.cpp