1 //===- MinGW.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_COFF_MINGW_H
10 #define LLD_COFF_MINGW_H
14 #include "lld/Common/LLVM.h"
19 // Logic for deciding what symbols to export, when exporting all
25 void addWholeArchive(StringRef path);
27 llvm::StringSet<> excludeSymbols;
28 llvm::StringSet<> excludeSymbolPrefixes;
29 llvm::StringSet<> excludeSymbolSuffixes;
30 llvm::StringSet<> excludeLibs;
31 llvm::StringSet<> excludeObjects;
33 bool shouldExport(Defined *sym) const;
36 void writeDefFile(StringRef name);