[LTO] Introduce an Output class to wrap the output stream creation (NFC)
authorMehdi Amini <mehdi.amini@apple.com>
Wed, 17 Aug 2016 06:23:09 +0000 (06:23 +0000)
committerMehdi Amini <mehdi.amini@apple.com>
Wed, 17 Aug 2016 06:23:09 +0000 (06:23 +0000)
commit970800e0c8c7cadcb36be28f6ea300108b9fc551
treeb6123cbebf9891a70690b7c374c74066f09dd310
parent406aa22c6f9663c969e1951fdfac3b745ac63ceb
[LTO] Introduce an Output class to wrap the output stream creation (NFC)

Summary:
While NFC for now, this will allow more flexibility on the client side
to hold state necessary to back up the stream.
Also when adding caching, this class will grow in complexity.

Note I blindly modified the gold-plugin as I can't compile it.

Reviewers: tejohnson

Subscribers: mehdi_amini, llvm-commits

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

llvm-svn: 278907
llvm/include/llvm/LTO/Config.h
llvm/include/llvm/LTO/LTO.h
llvm/include/llvm/LTO/LTOBackend.h
llvm/lib/LTO/LTO.cpp
llvm/lib/LTO/LTOBackend.cpp
llvm/tools/gold/gold-plugin.cpp
llvm/tools/llvm-lto2/llvm-lto2.cpp