[PATCH] D87659: clang-format

Derek Schuff via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 14 18:12:24 PDT 2020


dschuff created this revision.
Herald added subscribers: llvm-commits, hiraditya, sbc100.
Herald added a project: LLVM.
dschuff requested review of this revision.
Herald added a subscriber: aheejin.

Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D87659

Files:
  llvm/lib/MC/WasmObjectWriter.cpp


Index: llvm/lib/MC/WasmObjectWriter.cpp
===================================================================
--- llvm/lib/MC/WasmObjectWriter.cpp
+++ llvm/lib/MC/WasmObjectWriter.cpp
@@ -321,9 +321,8 @@
 
   void executePostLayoutBinding(MCAssembler &Asm,
                                 const MCAsmLayout &Layout) override;
-  void prepareImports(SmallVectorImpl<wasm::WasmImport>& Imports,
-                      MCAssembler &Asm,
-                      const MCAsmLayout &Layout);
+  void prepareImports(SmallVectorImpl<wasm::WasmImport> &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<wasm::WasmImport>& Imports,
-                                      MCAssembler &Asm,
-                                      const MCAsmLayout &Layout) {
+void WasmObjectWriter::prepareImports(
+    SmallVectorImpl<wasm::WasmImport> &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.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D87659.291749.patch
Type: text/x-patch
Size: 1845 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200915/01b24951/attachment.bin>


More information about the llvm-commits mailing list