diff options
author | shadchin <shadchin@yandex-team.ru> | 2022-02-10 16:44:39 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:44:39 +0300 |
commit | e9656aae26e0358d5378e5b63dcac5c8dbe0e4d0 (patch) | |
tree | 64175d5cadab313b3e7039ebaa06c5bc3295e274 /contrib/libs/llvm12/include/llvm/Object/Wasm.h | |
parent | 2598ef1d0aee359b4b6d5fdd1758916d5907d04f (diff) | |
download | ydb-e9656aae26e0358d5378e5b63dcac5c8dbe0e4d0.tar.gz |
Restoring authorship annotation for <shadchin@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'contrib/libs/llvm12/include/llvm/Object/Wasm.h')
-rw-r--r-- | contrib/libs/llvm12/include/llvm/Object/Wasm.h | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/contrib/libs/llvm12/include/llvm/Object/Wasm.h b/contrib/libs/llvm12/include/llvm/Object/Wasm.h index ab1fbba6be..80e3ddd109 100644 --- a/contrib/libs/llvm12/include/llvm/Object/Wasm.h +++ b/contrib/libs/llvm12/include/llvm/Object/Wasm.h @@ -43,15 +43,15 @@ class WasmSymbol { public: WasmSymbol(const wasm::WasmSymbolInfo &Info, const wasm::WasmGlobalType *GlobalType, - const wasm::WasmTableType *TableType, + const wasm::WasmTableType *TableType, const wasm::WasmEventType *EventType, const wasm::WasmSignature *Signature) - : Info(Info), GlobalType(GlobalType), TableType(TableType), - EventType(EventType), Signature(Signature) {} + : Info(Info), GlobalType(GlobalType), TableType(TableType), + EventType(EventType), Signature(Signature) {} const wasm::WasmSymbolInfo &Info; const wasm::WasmGlobalType *GlobalType; - const wasm::WasmTableType *TableType; + const wasm::WasmTableType *TableType; const wasm::WasmEventType *EventType; const wasm::WasmSignature *Signature; @@ -59,8 +59,8 @@ public: return Info.Kind == wasm::WASM_SYMBOL_TYPE_FUNCTION; } - bool isTypeTable() const { return Info.Kind == wasm::WASM_SYMBOL_TYPE_TABLE; } - + bool isTypeTable() const { return Info.Kind == wasm::WASM_SYMBOL_TYPE_TABLE; } + bool isTypeData() const { return Info.Kind == wasm::WASM_SYMBOL_TYPE_DATA; } bool isTypeGlobal() const { @@ -116,7 +116,7 @@ struct WasmSection { uint32_t Type = 0; // Section type (See below) uint32_t Offset = 0; // Offset with in the file StringRef Name; // Section name (User-defined sections only) - uint32_t Comdat = UINT32_MAX; // From the "comdat info" section + uint32_t Comdat = UINT32_MAX; // From the "comdat info" section ArrayRef<uint8_t> Content; // Section content std::vector<wasm::WasmRelocation> Relocations; // Relocations for this section }; @@ -158,10 +158,10 @@ public: ArrayRef<wasm::WasmElemSegment> elements() const { return ElemSegments; } ArrayRef<WasmSegment> dataSegments() const { return DataSegments; } ArrayRef<wasm::WasmFunction> functions() const { return Functions; } - ArrayRef<wasm::WasmDebugName> debugNames() const { return DebugNames; } + ArrayRef<wasm::WasmDebugName> debugNames() const { return DebugNames; } uint32_t startFunction() const { return StartFunction; } uint32_t getNumImportedGlobals() const { return NumImportedGlobals; } - uint32_t getNumImportedTables() const { return NumImportedTables; } + uint32_t getNumImportedTables() const { return NumImportedTables; } uint32_t getNumImportedFunctions() const { return NumImportedFunctions; } uint32_t getNumImportedEvents() const { return NumImportedEvents; } uint32_t getNumSections() const { return Sections.size(); } @@ -227,13 +227,13 @@ private: bool isValidFunctionIndex(uint32_t Index) const; bool isDefinedFunctionIndex(uint32_t Index) const; bool isValidGlobalIndex(uint32_t Index) const; - bool isValidTableIndex(uint32_t Index) const; + bool isValidTableIndex(uint32_t Index) const; bool isDefinedGlobalIndex(uint32_t Index) const; - bool isDefinedTableIndex(uint32_t Index) const; + bool isDefinedTableIndex(uint32_t Index) const; bool isValidEventIndex(uint32_t Index) const; bool isDefinedEventIndex(uint32_t Index) const; bool isValidFunctionSymbol(uint32_t Index) const; - bool isValidTableSymbol(uint32_t Index) const; + bool isValidTableSymbol(uint32_t Index) const; bool isValidGlobalSymbol(uint32_t Index) const; bool isValidEventSymbol(uint32_t Index) const; bool isValidDataSymbol(uint32_t Index) const; @@ -293,22 +293,22 @@ private: llvm::Optional<size_t> DataCount; std::vector<wasm::WasmFunction> Functions; std::vector<WasmSymbol> Symbols; - std::vector<wasm::WasmDebugName> DebugNames; + std::vector<wasm::WasmDebugName> DebugNames; uint32_t StartFunction = -1; bool HasLinkingSection = false; bool HasDylinkSection = false; bool SeenCodeSection = false; - bool HasMemory64 = false; + bool HasMemory64 = false; wasm::WasmLinkingData LinkingData; uint32_t NumImportedGlobals = 0; - uint32_t NumImportedTables = 0; + uint32_t NumImportedTables = 0; uint32_t NumImportedFunctions = 0; uint32_t NumImportedEvents = 0; uint32_t CodeSection = 0; uint32_t DataSection = 0; uint32_t EventSection = 0; uint32_t GlobalSection = 0; - uint32_t TableSection = 0; + uint32_t TableSection = 0; }; class WasmSectionOrderChecker { |