diff options
Diffstat (limited to 'wasm/InputFiles.h')
| -rw-r--r-- | wasm/InputFiles.h | 22 | 
1 files changed, 5 insertions, 17 deletions
| diff --git a/wasm/InputFiles.h b/wasm/InputFiles.h index ec77446e63087..bcda9cc8ee92d 100644 --- a/wasm/InputFiles.h +++ b/wasm/InputFiles.h @@ -20,21 +20,6 @@  #include "llvm/Support/MemoryBuffer.h"  #include <vector> -using llvm::object::Archive; -using llvm::object::WasmObjectFile; -using llvm::object::WasmSection; -using llvm::object::WasmSymbol; -using llvm::wasm::WasmGlobal; -using llvm::wasm::WasmImport; -using llvm::wasm::WasmRelocation; -using llvm::wasm::WasmSignature; - -namespace llvm { -namespace lto { -class InputFile; -} -} // namespace llvm -  namespace lld {  namespace wasm { @@ -42,6 +27,7 @@ class InputChunk;  class InputFunction;  class InputSegment;  class InputGlobal; +class InputEvent;  class InputSection;  class InputFile { @@ -84,12 +70,12 @@ public:    explicit ArchiveFile(MemoryBufferRef M) : InputFile(ArchiveKind, M) {}    static bool classof(const InputFile *F) { return F->kind() == ArchiveKind; } -  void addMember(const Archive::Symbol *Sym); +  void addMember(const llvm::object::Archive::Symbol *Sym);    void parse() override;  private: -  std::unique_ptr<Archive> File; +  std::unique_ptr<llvm::object::Archive> File;    llvm::DenseSet<uint64_t> Seen;  }; @@ -123,6 +109,7 @@ public:    std::vector<InputSegment *> Segments;    std::vector<InputFunction *> Functions;    std::vector<InputGlobal *> Globals; +  std::vector<InputEvent *> Events;    std::vector<InputSection *> CustomSections;    llvm::DenseMap<uint32_t, InputSection *> CustomSectionsByIndex; @@ -131,6 +118,7 @@ public:    DataSymbol *getDataSymbol(uint32_t Index) const;    GlobalSymbol *getGlobalSymbol(uint32_t Index) const;    SectionSymbol *getSectionSymbol(uint32_t Index) const; +  EventSymbol *getEventSymbol(uint32_t Index) const;  private:    Symbol *createDefined(const WasmSymbol &Sym); | 
