aboutsummaryrefslogtreecommitdiff
path: root/contrib/llvm-project/lld/COFF/MinGW.h
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/llvm-project/lld/COFF/MinGW.h')
-rw-r--r--contrib/llvm-project/lld/COFF/MinGW.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/contrib/llvm-project/lld/COFF/MinGW.h b/contrib/llvm-project/lld/COFF/MinGW.h
index 8f9343784fa0..5f2bbe4e9920 100644
--- a/contrib/llvm-project/lld/COFF/MinGW.h
+++ b/contrib/llvm-project/lld/COFF/MinGW.h
@@ -13,6 +13,7 @@
#include "Symbols.h"
#include "lld/Common/LLVM.h"
#include "llvm/ADT/ArrayRef.h"
+#include "llvm/ADT/DenseSet.h"
#include "llvm/ADT/StringSet.h"
#include "llvm/Option/ArgList.h"
#include <vector>
@@ -25,9 +26,10 @@ class COFFLinkerContext;
// symbols for MinGW.
class AutoExporter {
public:
- AutoExporter();
+ AutoExporter(const llvm::DenseSet<StringRef> &manualExcludeSymbols);
void addWholeArchive(StringRef path);
+ void addExcludedSymbol(StringRef symbol);
llvm::StringSet<> excludeSymbols;
llvm::StringSet<> excludeSymbolPrefixes;
@@ -35,6 +37,8 @@ public:
llvm::StringSet<> excludeLibs;
llvm::StringSet<> excludeObjects;
+ const llvm::DenseSet<StringRef> &manualExcludeSymbols;
+
bool shouldExport(const COFFLinkerContext &ctx, Defined *sym) const;
};