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"
15 #include "llvm/ADT/StringSet.h"
20 // Logic for deciding what symbols to export, when exporting all
26 void addWholeArchive(StringRef path);
28 llvm::StringSet<> excludeSymbols;
29 llvm::StringSet<> excludeSymbolPrefixes;
30 llvm::StringSet<> excludeSymbolSuffixes;
31 llvm::StringSet<> excludeLibs;
32 llvm::StringSet<> excludeObjects;
34 bool shouldExport(Defined *sym) const;
37 void writeDefFile(StringRef name);