diff options
author | shadchin <shadchin@yandex-team.ru> | 2022-02-10 16:44:30 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:44:30 +0300 |
commit | 2598ef1d0aee359b4b6d5fdd1758916d5907d04f (patch) | |
tree | 012bb94d777798f1f56ac1cec429509766d05181 /contrib/libs/llvm12/include/llvm/MC/MCSymbolWasm.h | |
parent | 6751af0b0c1b952fede40b19b71da8025b5d8bcf (diff) | |
download | ydb-2598ef1d0aee359b4b6d5fdd1758916d5907d04f.tar.gz |
Restoring authorship annotation for <shadchin@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'contrib/libs/llvm12/include/llvm/MC/MCSymbolWasm.h')
-rw-r--r-- | contrib/libs/llvm12/include/llvm/MC/MCSymbolWasm.h | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/contrib/libs/llvm12/include/llvm/MC/MCSymbolWasm.h b/contrib/libs/llvm12/include/llvm/MC/MCSymbolWasm.h index 9f84b82191..6812b57334 100644 --- a/contrib/libs/llvm12/include/llvm/MC/MCSymbolWasm.h +++ b/contrib/libs/llvm12/include/llvm/MC/MCSymbolWasm.h @@ -32,7 +32,7 @@ class MCSymbolWasm : public MCSymbol { Optional<StringRef> ExportName; wasm::WasmSignature *Signature = nullptr; Optional<wasm::WasmGlobalType> GlobalType; - Optional<wasm::ValType> TableType; + Optional<wasm::ValType> TableType; Optional<wasm::WasmEventType> EventType; /// An expression describing how to calculate the size of a symbol. If a @@ -50,7 +50,7 @@ public: bool isFunction() const { return Type == wasm::WASM_SYMBOL_TYPE_FUNCTION; } bool isData() const { return Type == wasm::WASM_SYMBOL_TYPE_DATA; } bool isGlobal() const { return Type == wasm::WASM_SYMBOL_TYPE_GLOBAL; } - bool isTable() const { return Type == wasm::WASM_SYMBOL_TYPE_TABLE; } + bool isTable() const { return Type == wasm::WASM_SYMBOL_TYPE_TABLE; } bool isSection() const { return Type == wasm::WASM_SYMBOL_TYPE_SECTION; } bool isEvent() const { return Type == wasm::WASM_SYMBOL_TYPE_EVENT; } wasm::WasmSymbolType getType() const { return Type; } @@ -103,15 +103,15 @@ public: StringRef getExportName() const { return ExportName.getValue(); } void setExportName(StringRef Name) { ExportName = Name; } - bool isFunctionTable() const { - return isTable() && hasTableType() && - getTableType() == wasm::ValType::FUNCREF; - } - void setFunctionTable() { - setType(wasm::WASM_SYMBOL_TYPE_TABLE); - setTableType(wasm::ValType::FUNCREF); - } - + bool isFunctionTable() const { + return isTable() && hasTableType() && + getTableType() == wasm::ValType::FUNCREF; + } + void setFunctionTable() { + setType(wasm::WASM_SYMBOL_TYPE_TABLE); + setTableType(wasm::ValType::FUNCREF); + } + void setUsedInGOT() const { IsUsedInGOT = true; } bool isUsedInGOT() const { return IsUsedInGOT; } @@ -127,13 +127,13 @@ public: } void setGlobalType(wasm::WasmGlobalType GT) { GlobalType = GT; } - bool hasTableType() const { return TableType.hasValue(); } - wasm::ValType getTableType() const { - assert(hasTableType()); - return TableType.getValue(); - } - void setTableType(wasm::ValType TT) { TableType = TT; } - + bool hasTableType() const { return TableType.hasValue(); } + wasm::ValType getTableType() const { + assert(hasTableType()); + return TableType.getValue(); + } + void setTableType(wasm::ValType TT) { TableType = TT; } + const wasm::WasmEventType &getEventType() const { assert(EventType.hasValue()); return EventType.getValue(); |