diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2019-01-19 10:05:49 +0000 |
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2019-01-19 10:05:49 +0000 |
| commit | e2fd426bdafe9f5c10066d3926ece6e342184a67 (patch) | |
| tree | bfbbb5fd38554e6b8988b7a217e9fd0623728d7d /wasm/SymbolTable.h | |
| parent | 84c4061b34e048f47e5eb4fbabc1558495e8157c (diff) | |
Notes
Diffstat (limited to 'wasm/SymbolTable.h')
| -rw-r--r-- | wasm/SymbolTable.h | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/wasm/SymbolTable.h b/wasm/SymbolTable.h index 26242e6cddd69..5e38e30692abe 100644 --- a/wasm/SymbolTable.h +++ b/wasm/SymbolTable.h @@ -13,12 +13,9 @@ #include "InputFiles.h" #include "LTO.h" #include "Symbols.h" +#include "lld/Common/LLVM.h" #include "llvm/ADT/CachedHashString.h" #include "llvm/ADT/DenseSet.h" -#include "llvm/Support/raw_ostream.h" - -using llvm::wasm::WasmGlobalType; -using llvm::wasm::WasmSignature; namespace lld { namespace wasm { @@ -59,6 +56,8 @@ public: uint32_t Size); Symbol *addDefinedGlobal(StringRef Name, uint32_t Flags, InputFile *File, InputGlobal *G); + Symbol *addDefinedEvent(StringRef Name, uint32_t Flags, InputFile *File, + InputEvent *E); Symbol *addUndefinedFunction(StringRef Name, uint32_t Flags, InputFile *File, const WasmSignature *Signature); @@ -66,7 +65,7 @@ public: Symbol *addUndefinedGlobal(StringRef Name, uint32_t Flags, InputFile *File, const WasmGlobalType *Type); - void addLazy(ArchiveFile *F, const Archive::Symbol *Sym); + void addLazy(ArchiveFile *F, const llvm::object::Archive::Symbol *Sym); bool addComdat(StringRef Name); @@ -77,7 +76,7 @@ public: InputFunction *Function); private: - std::pair<Symbol *, bool> insert(StringRef Name); + std::pair<Symbol *, bool> insert(StringRef Name, InputFile *File); llvm::DenseMap<llvm::CachedHashStringRef, Symbol *> SymMap; std::vector<Symbol *> SymVector; |
