1 //===- LTO.h ----------------------------------------------------*- C++ -*-===//
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
9 #ifndef LLD_MACHO_LTO_H
10 #define LLD_MACHO_LTO_H
12 #include "llvm/ADT/SmallString.h"
13 #include "llvm/Support/MemoryBuffer.h"
29 class BitcodeCompiler
{
33 void add(BitcodeFile
&f
);
34 std::vector
<ObjFile
*> compile();
37 std::unique_ptr
<llvm::lto::LTO
> ltoObj
;
38 std::vector
<llvm::SmallString
<0>> buf
;
39 std::vector
<std::unique_ptr
<llvm::MemoryBuffer
>> files
;