Sink undesirable LTO functions into the old C API
authorAlp Toker <alp@nuanti.com>
Fri, 4 Jul 2014 00:58:41 +0000 (00:58 +0000)
committerAlp Toker <alp@nuanti.com>
Fri, 4 Jul 2014 00:58:41 +0000 (00:58 +0000)
commitac90380b5e9ef1c4fa32ab0bee869a0be5ddbea2
tree913bfcdf5c59c27b44a2bf2bd1c706a6fb15958a
parent651ed5e8fdf05878088b2f7579735083775e43e3
Sink undesirable LTO functions into the old C API

We want to encourage users of the C++ LTO API to reuse memory buffers instead
of repeatedly opening and reading the same file contents.

This reverts commit r212305 and implements a tidier scheme.

llvm-svn: 212308
llvm/include/llvm/LTO/LTOModule.h
llvm/lib/LTO/LTOModule.cpp
llvm/tools/lto/lto.cpp