]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/llvm/tools/lld/COFF/MinGW.h
Import DTS includes from 4.19
[FreeBSD/FreeBSD.git] / contrib / llvm / tools / lld / COFF / MinGW.h
1 //===- MinGW.h --------------------------------------------------*- C++ -*-===//
2 //
3 //                             The LLVM Linker
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9
10 #ifndef LLD_COFF_MINGW_H
11 #define LLD_COFF_MINGW_H
12
13 #include "Config.h"
14 #include "Symbols.h"
15 #include "lld/Common/LLVM.h"
16
17 namespace lld {
18 namespace coff {
19
20 // Logic for deciding what symbols to export, when exporting all
21 // symbols for MinGW.
22 class AutoExporter {
23 public:
24   AutoExporter();
25
26   llvm::StringSet<> ExcludeSymbols;
27   llvm::StringSet<> ExcludeLibs;
28   llvm::StringSet<> ExcludeObjects;
29
30   bool shouldExport(Defined *Sym) const;
31 };
32
33 void writeDefFile(StringRef Name);
34
35 } // namespace coff
36 } // namespace lld
37
38 #endif