summaryrefslogtreecommitdiffstats
path: root/lld/wasm/SymbolTable.h
diff options
context:
space:
mode:
authorSam Clegg <sbc@chromium.org>2018-01-28 19:57:01 +0000
committerSam Clegg <sbc@chromium.org>2018-01-28 19:57:01 +0000
commit24b3dcd4bfa53c0245bb56c3bc04778b98e7b9ce (patch)
treedce103bed793c1493e3f223cd0fa02c717ef16a7 /lld/wasm/SymbolTable.h
parentb5885118f461bd643ca98d65f2008937489773c6 (diff)
downloadbcm5719-llvm-24b3dcd4bfa53c0245bb56c3bc04778b98e7b9ce.tar.gz
bcm5719-llvm-24b3dcd4bfa53c0245bb56c3bc04778b98e7b9ce.zip
[WebAssemly] Associate symbol with InputChunk in which they are defined. NFC.
Summary: Rather than explicit Function or InputSegment points store a pointer to the base class (InputChunk) and use llvm dynamic casts when we need a subtype. This change is useful for add the upcoming gc-section support wants to deal with all input chunks. Subscribers: aheejin, llvm-commits Differential Revision: https://reviews.llvm.org/D42625 llvm-svn: 323621
Diffstat (limited to 'lld/wasm/SymbolTable.h')
-rw-r--r--lld/wasm/SymbolTable.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/lld/wasm/SymbolTable.h b/lld/wasm/SymbolTable.h
index 65c95b1603e..d2857141649 100644
--- a/lld/wasm/SymbolTable.h
+++ b/lld/wasm/SymbolTable.h
@@ -50,8 +50,8 @@ public:
ObjFile *findComdat(StringRef Name) const;
Symbol *addDefined(StringRef Name, Symbol::Kind Kind, uint32_t Flags,
- InputFile *F, const InputSegment *Segment = nullptr,
- InputFunction *Function = nullptr, uint32_t Address = 0);
+ InputFile *F,
+ InputChunk *Chunk = nullptr, uint32_t Address = 0);
Symbol *addUndefined(StringRef Name, Symbol::Kind Kind, uint32_t Flags,
InputFile *F, const WasmSignature *Signature = nullptr);
Symbol *addUndefinedFunction(StringRef Name, const WasmSignature *Type);
OpenPOWER on IntegriCloud