diff --git a/llvm/lib/MC/WasmObjectWriter.cpp b/llvm/lib/MC/WasmObjectWriter.cpp --- a/llvm/lib/MC/WasmObjectWriter.cpp +++ b/llvm/lib/MC/WasmObjectWriter.cpp @@ -321,9 +321,8 @@ void executePostLayoutBinding(MCAssembler &Asm, const MCAsmLayout &Layout) override; - void prepareImports(SmallVectorImpl& Imports, - MCAssembler &Asm, - const MCAsmLayout &Layout); + void prepareImports(SmallVectorImpl &Imports, + MCAssembler &Asm, const MCAsmLayout &Layout); uint64_t writeObject(MCAssembler &Asm, const MCAsmLayout &Layout) override; uint64_t writeOneObject(MCAssembler &Asm, const MCAsmLayout &Layout, @@ -963,7 +962,7 @@ encodeULEB128(0, W->OS); // memory index if ((Segment.InitFlags & wasm::WASM_SEGMENT_IS_PASSIVE) == 0) { W->OS << char(Segment.Offset > INT32_MAX ? wasm::WASM_OPCODE_I64_CONST - : wasm::WASM_OPCODE_I32_CONST); + : wasm::WASM_OPCODE_I32_CONST); encodeSLEB128(Segment.Offset, W->OS); // offset W->OS << char(wasm::WASM_OPCODE_END); } @@ -1198,9 +1197,9 @@ return true; } -void WasmObjectWriter::prepareImports(SmallVectorImpl& Imports, - MCAssembler &Asm, - const MCAsmLayout &Layout) { +void WasmObjectWriter::prepareImports( + SmallVectorImpl &Imports, MCAssembler &Asm, + const MCAsmLayout &Layout) { // For now, always emit the memory import, since loads and stores are not // valid without it. In the future, we could perhaps be more clever and omit // it if there are no loads or stores.