diff --git a/llvm/include/llvm/MC/MCWasmObjectWriter.h b/llvm/include/llvm/MC/MCWasmObjectWriter.h --- a/llvm/include/llvm/MC/MCWasmObjectWriter.h +++ b/llvm/include/llvm/MC/MCWasmObjectWriter.h @@ -35,7 +35,8 @@ } virtual unsigned getRelocType(const MCValue &Target, const MCFixup &Fixup, - const MCSectionWasm &FixupSection, bool IsLocRel) const = 0; + const MCSectionWasm &FixupSection, + bool IsLocRel) const = 0; /// \name Accessors /// @{ 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 @@ -498,7 +498,8 @@ // be negative and don't wrap. FixedValue = 0; errs() << "FixupSection " << FixupSection.getName() << "\n"; - unsigned Type = TargetObjectWriter->getRelocType(Target, Fixup, FixupSection, IsLocRel); + unsigned Type = + TargetObjectWriter->getRelocType(Target, Fixup, FixupSection, IsLocRel); // Absolute offset within a section or a function. // Currently only supported for for metadata sections. diff --git a/llvm/lib/Target/WebAssembly/MCTargetDesc/WebAssemblyWasmObjectWriter.cpp b/llvm/lib/Target/WebAssembly/MCTargetDesc/WebAssemblyWasmObjectWriter.cpp --- a/llvm/lib/Target/WebAssembly/MCTargetDesc/WebAssemblyWasmObjectWriter.cpp +++ b/llvm/lib/Target/WebAssembly/MCTargetDesc/WebAssemblyWasmObjectWriter.cpp @@ -35,7 +35,8 @@ private: unsigned getRelocType(const MCValue &Target, const MCFixup &Fixup, - const MCSectionWasm &FixupSection, bool IsLocRel) const override; + const MCSectionWasm &FixupSection, + bool IsLocRel) const override; }; } // end anonymous namespace @@ -62,10 +63,9 @@ return nullptr; } -unsigned WebAssemblyWasmObjectWriter::getRelocType(const MCValue &Target, - const MCFixup &Fixup, - const MCSectionWasm &FixupSection, - bool IsLocRel) const { +unsigned WebAssemblyWasmObjectWriter::getRelocType( + const MCValue &Target, const MCFixup &Fixup, + const MCSectionWasm &FixupSection, bool IsLocRel) const { const MCSymbolRefExpr *RefA = Target.getSymA(); assert(RefA); auto& SymA = cast(RefA->getSymbol()); @@ -90,7 +90,7 @@ default: break; } - auto* fs = getTargetSection(Fixup.getValue()); + auto *fs = getTargetSection(Fixup.getValue()); errs() << "inner TargetSection " << fs << "\n"; if (fs) errs() << " name " << fs->getName() << "\n";