summaryrefslogtreecommitdiffstats
path: root/lld/wasm/Symbols.h
diff options
context:
space:
mode:
Diffstat (limited to 'lld/wasm/Symbols.h')
-rw-r--r--lld/wasm/Symbols.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/lld/wasm/Symbols.h b/lld/wasm/Symbols.h
index 3ed9e7abf55..fa321d17e7a 100644
--- a/lld/wasm/Symbols.h
+++ b/lld/wasm/Symbols.h
@@ -98,8 +98,14 @@ public:
WasmSymbolType getWasmType() const;
bool isExported() const;
- // True if this symbol was referenced by a regular (non-bitcode) object.
+ // True if the symbol was used for linking and thus need to be added to the
+ // output file's symbol table. This is true for all symbols except for
+ // unreferenced DSO symbols, lazy (archive) symbols, and bitcode symbols that
+ // are unreferenced except by other bitcode objects.
unsigned IsUsedInRegularObj : 1;
+
+ // True if ths symbol is explicity marked for export (i.e. via the -e/--export
+ // command line flag)
unsigned ForceExport : 1;
// True if this symbol is specified by --trace-symbol option.
OpenPOWER on IntegriCloud