zig/deps/lld/wasm/Config.h

62 lines
1.4 KiB
C
Raw Normal View History

2018-01-18 06:29:21 +08:00
//===- Config.h -------------------------------------------------*- C++ -*-===//
//
// The LLVM Linker
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
#ifndef LLD_WASM_CONFIG_H
#define LLD_WASM_CONFIG_H
#include "llvm/ADT/StringRef.h"
#include "llvm/ADT/StringSet.h"
#include "llvm/BinaryFormat/Wasm.h"
2018-08-05 05:47:16 +08:00
#include "llvm/Support/CachePruning.h"
2018-01-18 06:29:21 +08:00
namespace lld {
namespace wasm {
struct Configuration {
bool AllowUndefined;
2018-08-05 05:47:16 +08:00
bool CompressRelocTargets;
2018-01-18 06:29:21 +08:00
bool Demangle;
2018-08-05 05:47:16 +08:00
bool DisableVerify;
bool ExportAll;
bool ExportTable;
bool GcSections;
2018-01-18 06:29:21 +08:00
bool ImportMemory;
2018-08-05 05:47:16 +08:00
bool ImportTable;
bool MergeDataSegments;
bool PrintGcSections;
2018-01-18 06:29:21 +08:00
bool Relocatable;
2018-08-05 05:47:16 +08:00
bool SaveTemps;
2018-01-18 06:29:21 +08:00
bool StripAll;
bool StripDebug;
2018-08-05 05:47:16 +08:00
bool StackFirst;
2018-01-18 06:29:21 +08:00
uint32_t GlobalBase;
uint32_t InitialMemory;
uint32_t MaxMemory;
uint32_t ZStackSize;
2018-08-05 05:47:16 +08:00
unsigned LTOPartitions;
unsigned LTOO;
unsigned Optimize;
unsigned ThinLTOJobs;
2018-01-18 06:29:21 +08:00
llvm::StringRef Entry;
llvm::StringRef OutputFile;
2018-08-05 05:47:16 +08:00
llvm::StringRef ThinLTOCacheDir;
2018-01-18 06:29:21 +08:00
llvm::StringSet<> AllowUndefinedSymbols;
std::vector<llvm::StringRef> SearchPaths;
2018-08-05 05:47:16 +08:00
llvm::CachePruningPolicy ThinLTOCachePolicy;
2018-01-18 06:29:21 +08:00
};
// The only instance of Configuration struct.
extern Configuration *Config;
} // namespace wasm
} // namespace lld
#endif