zig/deps/lld/COFF/MinGW.h

42 lines
1022 B
C
Raw Normal View History

2018-01-18 06:29:21 +08:00
//===- MinGW.h --------------------------------------------------*- C++ -*-===//
//
2019-08-04 00:43:55 +08:00
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
2018-01-18 06:29:21 +08:00
//
//===----------------------------------------------------------------------===//
#ifndef LLD_COFF_MINGW_H
#define LLD_COFF_MINGW_H
#include "Config.h"
#include "Symbols.h"
#include "lld/Common/LLVM.h"
namespace lld {
namespace coff {
// Logic for deciding what symbols to export, when exporting all
// symbols for MinGW.
class AutoExporter {
public:
AutoExporter();
2019-08-04 00:43:55 +08:00
void addWholeArchive(StringRef path);
2019-02-08 06:07:18 +08:00
2019-08-04 00:43:55 +08:00
llvm::StringSet<> excludeSymbols;
llvm::StringSet<> excludeSymbolPrefixes;
llvm::StringSet<> excludeSymbolSuffixes;
llvm::StringSet<> excludeLibs;
llvm::StringSet<> excludeObjects;
2018-01-18 06:29:21 +08:00
2019-08-04 00:43:55 +08:00
bool shouldExport(Defined *sym) const;
2018-01-18 06:29:21 +08:00
};
2019-08-04 00:43:55 +08:00
void writeDefFile(StringRef name);
2018-01-18 06:29:21 +08:00
} // namespace coff
} // namespace lld
#endif