diff options
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 26242e6cddd6..5e38e30692ab 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; |