[LLD][COFF] Ignore DEBUG_S_XFGHASH_TYPE/VIRTUAL
[llvm-project.git] / lld / MachO / LTO.h
blob3e5f1a69057dcfa50671e21cdec4ac04ab339302
1 //===- LTO.h ----------------------------------------------------*- C++ -*-===//
2 //
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
6 //
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"
14 #include <memory>
15 #include <vector>
17 namespace llvm::lto {
18 class LTO;
19 } // namespace llvm::lto
21 namespace lld::macho {
23 class BitcodeFile;
24 class ObjFile;
26 class BitcodeCompiler {
27 public:
28 BitcodeCompiler();
30 void add(BitcodeFile &f);
31 std::vector<ObjFile *> compile();
33 private:
34 std::unique_ptr<llvm::lto::LTO> ltoObj;
35 std::vector<llvm::SmallString<0>> buf;
36 std::vector<std::unique_ptr<llvm::MemoryBuffer>> files;
39 } // namespace lld::macho
41 #endif