Mercurial > hg > CbC > CbC_llvm
diff lld/wasm/SymbolTable.h @ 252:1f2b6ac9f198 llvm-original
LLVM16-1
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Fri, 18 Aug 2023 09:04:13 +0900 |
parents | c4bab56944e8 |
children |
line wrap: on
line diff
--- a/lld/wasm/SymbolTable.h Wed Nov 09 17:47:54 2022 +0900 +++ b/lld/wasm/SymbolTable.h Fri Aug 18 09:04:13 2023 +0900 @@ -15,11 +15,10 @@ #include "lld/Common/LLVM.h" #include "llvm/ADT/CachedHashString.h" #include "llvm/ADT/DenseSet.h" -#include "llvm/ADT/Optional.h" #include "llvm/BinaryFormat/WasmTraits.h" +#include <optional> -namespace lld { -namespace wasm { +namespace lld::wasm { class InputSegment; @@ -63,26 +62,24 @@ InputTable *t); Symbol *addUndefinedFunction(StringRef name, - llvm::Optional<StringRef> importName, - llvm::Optional<StringRef> importModule, + std::optional<StringRef> importName, + std::optional<StringRef> importModule, uint32_t flags, InputFile *file, const WasmSignature *signature, bool isCalledDirectly); Symbol *addUndefinedData(StringRef name, uint32_t flags, InputFile *file); Symbol *addUndefinedGlobal(StringRef name, - llvm::Optional<StringRef> importName, - llvm::Optional<StringRef> importModule, + std::optional<StringRef> importName, + std::optional<StringRef> importModule, uint32_t flags, InputFile *file, const WasmGlobalType *type); - Symbol *addUndefinedTable(StringRef name, - llvm::Optional<StringRef> importName, - llvm::Optional<StringRef> importModule, + Symbol *addUndefinedTable(StringRef name, std::optional<StringRef> importName, + std::optional<StringRef> importModule, uint32_t flags, InputFile *file, const WasmTableType *type); - Symbol *addUndefinedTag(StringRef name, llvm::Optional<StringRef> importName, - llvm::Optional<StringRef> importModule, - uint32_t flags, InputFile *file, - const WasmSignature *sig); + Symbol *addUndefinedTag(StringRef name, std::optional<StringRef> importName, + std::optional<StringRef> importModule, uint32_t flags, + InputFile *file, const WasmSignature *sig); TableSymbol *resolveIndirectFunctionTable(bool required); @@ -105,6 +102,7 @@ DefinedFunction *createUndefinedStub(const WasmSignature &sig); std::vector<ObjFile *> objectFiles; + std::vector<StubFile *> stubFiles; std::vector<SharedFile *> sharedFiles; std::vector<BitcodeFile *> bitcodeFiles; std::vector<InputFunction *> syntheticFunctions; @@ -146,7 +144,6 @@ extern SymbolTable *symtab; -} // namespace wasm -} // namespace lld +} // namespace lld::wasm #endif