diff options
Diffstat (limited to 'lld/wasm/Config.h')
-rw-r--r-- | lld/wasm/Config.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lld/wasm/Config.h b/lld/wasm/Config.h index ccd7f3717f9..7881d01502d 100644 --- a/lld/wasm/Config.h +++ b/lld/wasm/Config.h @@ -17,6 +17,10 @@ namespace lld { namespace wasm { +// This struct contains the global configuration for the linker. +// Most fields are direct mapping from the command line options +// and such fields have the same name as the corresponding options. +// Most fields are initialized by the driver. struct Configuration { bool AllowUndefined; bool CheckFeatures; @@ -48,6 +52,7 @@ struct Configuration { unsigned LTOO; unsigned Optimize; unsigned ThinLTOJobs; + llvm::StringRef Entry; llvm::StringRef OutputFile; llvm::StringRef ThinLTOCacheDir; @@ -57,6 +62,9 @@ struct Configuration { llvm::CachePruningPolicy ThinLTOCachePolicy; llvm::Optional<std::vector<std::string>> Features; + // The following config options do not directly correspond to any + // particualr command line options. + // True if we are creating position-independent code. bool Pic; }; |