From c031378ce01b8485ba0ef486654bc9393c4ac024 Mon Sep 17 00:00:00 2001 From: Shengchen Kan Date: Mon, 20 Apr 2020 19:28:13 -0700 Subject: [PATCH] [MC][NFC] Use camelCase style for functions in MCObjectStreamer --- llvm/include/llvm/MC/MCELFStreamer.h | 6 +-- llvm/include/llvm/MC/MCObjectStreamer.h | 22 ++++----- llvm/include/llvm/MC/MCStreamer.h | 32 ++++++------- llvm/include/llvm/MC/MCWasmStreamer.h | 6 +-- llvm/include/llvm/MC/MCWinCOFFStreamer.h | 2 +- llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp | 20 ++++----- llvm/lib/MC/MCAsmStreamer.cpp | 52 +++++++++++----------- llvm/lib/MC/MCCodeView.cpp | 2 +- llvm/lib/MC/MCELFStreamer.cpp | 12 ++--- llvm/lib/MC/MCMachOStreamer.cpp | 12 ++--- llvm/lib/MC/MCObjectStreamer.cpp | 30 ++++++------- llvm/lib/MC/MCParser/AsmParser.cpp | 20 ++++----- llvm/lib/MC/MCParser/MasmParser.cpp | 20 ++++----- llvm/lib/MC/MCStreamer.cpp | 32 ++++++------- llvm/lib/MC/MCWasmStreamer.cpp | 14 +++--- llvm/lib/MC/MCWinCOFFStreamer.cpp | 4 +- .../AArch64/MCTargetDesc/AArch64ELFStreamer.cpp | 4 +- .../MCTargetDesc/AArch64WinCOFFStreamer.cpp | 8 ++-- .../lib/Target/ARM/MCTargetDesc/ARMELFStreamer.cpp | 10 ++--- .../Target/ARM/MCTargetDesc/ARMWinCOFFStreamer.cpp | 8 ++-- .../Target/X86/MCTargetDesc/X86WinCOFFStreamer.cpp | 8 ++-- 21 files changed, 162 insertions(+), 162 deletions(-) diff --git a/llvm/include/llvm/MC/MCELFStreamer.h b/llvm/include/llvm/MC/MCELFStreamer.h index d9905f3..f11629d 100644 --- a/llvm/include/llvm/MC/MCELFStreamer.h +++ b/llvm/include/llvm/MC/MCELFStreamer.h @@ -39,7 +39,7 @@ public: /// @{ void InitSections(bool NoExecStack) override; - void ChangeSection(MCSection *Section, const MCExpr *Subsection) override; + void changeSection(MCSection *Section, const MCExpr *Subsection) override; void emitLabel(MCSymbol *Symbol, SMLoc Loc = SMLoc()) override; void emitLabelAtPos(MCSymbol *Symbol, SMLoc Loc, MCFragment *F, uint64_t Offset) override; @@ -73,7 +73,7 @@ public: void emitCGProfileEntry(const MCSymbolRefExpr *From, const MCSymbolRefExpr *To, uint64_t Count) override; - void FinishImpl() override; + void finishImpl() override; void emitBundleAlignMode(unsigned AlignPow2) override; void emitBundleLock(bool AlignToEnd) override; @@ -81,7 +81,7 @@ public: private: bool isBundleLocked() const; - void EmitInstToFragment(const MCInst &Inst, const MCSubtargetInfo &) override; + void emitInstToFragment(const MCInst &Inst, const MCSubtargetInfo &) override; void emitInstToData(const MCInst &Inst, const MCSubtargetInfo &) override; void fixSymbolsInTLSFixups(const MCExpr *expr); diff --git a/llvm/include/llvm/MC/MCObjectStreamer.h b/llvm/include/llvm/MC/MCObjectStreamer.h index efd91a7..48d00fa 100644 --- a/llvm/include/llvm/MC/MCObjectStreamer.h +++ b/llvm/include/llvm/MC/MCObjectStreamer.h @@ -69,7 +69,7 @@ public: /// Object streamers require the integrated assembler. bool isIntegratedAssemblerRequired() const override { return true; } - void EmitFrames(MCAsmBackend *MAB); + void emitFrames(MCAsmBackend *MAB); void emitCFISections(bool EH, bool Debug) override; MCFragment *getCurrentFragment() const; @@ -122,12 +122,12 @@ public: void emitULEB128Value(const MCExpr *Value) override; void emitSLEB128Value(const MCExpr *Value) override; void emitWeakReference(MCSymbol *Alias, const MCSymbol *Symbol) override; - void ChangeSection(MCSection *Section, const MCExpr *Subsection) override; + void changeSection(MCSection *Section, const MCExpr *Subsection) override; void emitInstruction(const MCInst &Inst, const MCSubtargetInfo &STI) override; /// Emit an instruction to a special fragment, because this instruction /// can change its size during relaxation. - virtual void EmitInstToFragment(const MCInst &Inst, const MCSubtargetInfo &); + virtual void emitInstToFragment(const MCInst &Inst, const MCSubtargetInfo &); void emitBundleAlignMode(unsigned AlignPow2) override; void emitBundleLock(bool AlignToEnd) override; @@ -148,22 +148,22 @@ public: const MCSymbol *Label, unsigned PointerSize); void emitDwarfAdvanceFrameAddr(const MCSymbol *LastLabel, const MCSymbol *Label); - void EmitCVLocDirective(unsigned FunctionId, unsigned FileNo, unsigned Line, + void emitCVLocDirective(unsigned FunctionId, unsigned FileNo, unsigned Line, unsigned Column, bool PrologueEnd, bool IsStmt, StringRef FileName, SMLoc Loc) override; - void EmitCVLinetableDirective(unsigned FunctionId, const MCSymbol *Begin, + void emitCVLinetableDirective(unsigned FunctionId, const MCSymbol *Begin, const MCSymbol *End) override; - void EmitCVInlineLinetableDirective(unsigned PrimaryFunctionId, + void emitCVInlineLinetableDirective(unsigned PrimaryFunctionId, unsigned SourceFileId, unsigned SourceLineNum, const MCSymbol *FnStartSym, const MCSymbol *FnEndSym) override; - void EmitCVDefRangeDirective( + void emitCVDefRangeDirective( ArrayRef> Ranges, StringRef FixedSizePortion) override; - void EmitCVStringTableDirective() override; - void EmitCVFileChecksumsDirective() override; - void EmitCVFileChecksumOffsetDirective(unsigned FileNo) override; + void emitCVStringTableDirective() override; + void emitCVFileChecksumsDirective() override; + void emitCVFileChecksumOffsetDirective(unsigned FileNo) override; void emitDTPRel32Value(const MCExpr *Value) override; void emitDTPRel64Value(const MCExpr *Value) override; void emitTPRel32Value(const MCExpr *Value) override; @@ -183,7 +183,7 @@ public: void emitAddrsig() override; void emitAddrsigSym(const MCSymbol *Sym) override; - void FinishImpl() override; + void finishImpl() override; /// Emit the absolute difference between two symbols if possible. /// diff --git a/llvm/include/llvm/MC/MCStreamer.h b/llvm/include/llvm/MC/MCStreamer.h index 78ad95c..d62fcf7 100644 --- a/llvm/include/llvm/MC/MCStreamer.h +++ b/llvm/include/llvm/MC/MCStreamer.h @@ -377,7 +377,7 @@ public: /// /// This is called by PopSection and SwitchSection, if the current /// section changes. - virtual void ChangeSection(MCSection *, const MCExpr *); + virtual void changeSection(MCSection *, const MCExpr *); /// Save the current and previous section on the section stack. void PushSection() { @@ -386,7 +386,7 @@ public: } /// Restore the current and previous section from the section stack. - /// Calls ChangeSection as needed. + /// Calls changeSection as needed. /// /// Returns false if the stack was empty. bool PopSection() { @@ -399,7 +399,7 @@ public: MCSectionSubPair NewSection = I->first; if (NewSection.first && OldSection != NewSection) - ChangeSection(NewSection.first, NewSection.second); + changeSection(NewSection.first, NewSection.second); SectionStack.pop_back(); return true; } @@ -421,7 +421,7 @@ public: /// Set the current section where code is being emitted to \p Section. /// This is required to update CurSection. This version does not call - /// ChangeSection. + /// changeSection. void SwitchSectionNoChange(MCSection *Section, const MCExpr *Subsection = nullptr) { assert(Section && "Cannot switch to a null section!"); @@ -871,19 +871,19 @@ public: unsigned IACol, SMLoc Loc); /// This implements the CodeView '.cv_loc' assembler directive. - virtual void EmitCVLocDirective(unsigned FunctionId, unsigned FileNo, + virtual void emitCVLocDirective(unsigned FunctionId, unsigned FileNo, unsigned Line, unsigned Column, bool PrologueEnd, bool IsStmt, StringRef FileName, SMLoc Loc); /// This implements the CodeView '.cv_linetable' assembler directive. - virtual void EmitCVLinetableDirective(unsigned FunctionId, + virtual void emitCVLinetableDirective(unsigned FunctionId, const MCSymbol *FnStart, const MCSymbol *FnEnd); /// This implements the CodeView '.cv_inline_linetable' assembler /// directive. - virtual void EmitCVInlineLinetableDirective(unsigned PrimaryFunctionId, + virtual void emitCVInlineLinetableDirective(unsigned PrimaryFunctionId, unsigned SourceFileId, unsigned SourceLineNum, const MCSymbol *FnStartSym, @@ -891,35 +891,35 @@ public: /// This implements the CodeView '.cv_def_range' assembler /// directive. - virtual void EmitCVDefRangeDirective( + virtual void emitCVDefRangeDirective( ArrayRef> Ranges, StringRef FixedSizePortion); - virtual void EmitCVDefRangeDirective( + virtual void emitCVDefRangeDirective( ArrayRef> Ranges, codeview::DefRangeRegisterRelHeader DRHdr); - virtual void EmitCVDefRangeDirective( + virtual void emitCVDefRangeDirective( ArrayRef> Ranges, codeview::DefRangeSubfieldRegisterHeader DRHdr); - virtual void EmitCVDefRangeDirective( + virtual void emitCVDefRangeDirective( ArrayRef> Ranges, codeview::DefRangeRegisterHeader DRHdr); - virtual void EmitCVDefRangeDirective( + virtual void emitCVDefRangeDirective( ArrayRef> Ranges, codeview::DefRangeFramePointerRelHeader DRHdr); /// This implements the CodeView '.cv_stringtable' assembler directive. - virtual void EmitCVStringTableDirective() {} + virtual void emitCVStringTableDirective() {} /// This implements the CodeView '.cv_filechecksums' assembler directive. - virtual void EmitCVFileChecksumsDirective() {} + virtual void emitCVFileChecksumsDirective() {} /// This implements the CodeView '.cv_filechecksumoffset' assembler /// directive. - virtual void EmitCVFileChecksumOffsetDirective(unsigned FileNo) {} + virtual void emitCVFileChecksumOffsetDirective(unsigned FileNo) {} /// This implements the CodeView '.cv_fpo_data' assembler directive. virtual void EmitCVFPOData(const MCSymbol *ProcSym, SMLoc Loc = {}) {} @@ -1030,7 +1030,7 @@ public: void emitRawText(const Twine &String); /// Streamer specific finalization. - virtual void FinishImpl(); + virtual void finishImpl(); /// Finish emission of machine code. void Finish(); diff --git a/llvm/include/llvm/MC/MCWasmStreamer.h b/llvm/include/llvm/MC/MCWasmStreamer.h index 623f438..61075e7 100644 --- a/llvm/include/llvm/MC/MCWasmStreamer.h +++ b/llvm/include/llvm/MC/MCWasmStreamer.h @@ -40,7 +40,7 @@ public: /// \name MCStreamer Interface /// @{ - void ChangeSection(MCSection *Section, const MCExpr *Subsection) override; + void changeSection(MCSection *Section, const MCExpr *Subsection) override; void emitAssemblerFlag(MCAssemblerFlag Flag) override; void emitThumbFunc(MCSymbol *Func) override; void emitWeakReference(MCSymbol *Alias, const MCSymbol *Symbol) override; @@ -66,10 +66,10 @@ public: void emitValueToAlignment(unsigned, int64_t, unsigned, unsigned) override; - void FinishImpl() override; + void finishImpl() override; private: - void EmitInstToFragment(const MCInst &Inst, const MCSubtargetInfo &) override; + void emitInstToFragment(const MCInst &Inst, const MCSubtargetInfo &) override; void emitInstToData(const MCInst &Inst, const MCSubtargetInfo &) override; /// Merge the content of the fragment \p EF into the fragment \p DF. diff --git a/llvm/include/llvm/MC/MCWinCOFFStreamer.h b/llvm/include/llvm/MC/MCWinCOFFStreamer.h index f3a15d6..b5f570e 100644 --- a/llvm/include/llvm/MC/MCWinCOFFStreamer.h +++ b/llvm/include/llvm/MC/MCWinCOFFStreamer.h @@ -64,7 +64,7 @@ public: unsigned ByteAlignment) override; void emitIdent(StringRef IdentString) override; void EmitWinEHHandlerData(SMLoc Loc) override; - void FinishImpl() override; + void finishImpl() override; /// \} diff --git a/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp b/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp index cd182c7..3264e07 100644 --- a/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp @@ -559,7 +559,7 @@ void CodeViewDebug::maybeRecordLocation(const DebugLoc &DL, addLocIfNotPresent(CurFn->ChildSites, Loc); } - OS.EmitCVLocDirective(FuncId, FileId, DL.getLine(), DL.getCol(), + OS.emitCVLocDirective(FuncId, FileId, DL.getLine(), DL.getCol(), /*PrologueEnd=*/false, /*IsStmt=*/false, DL->getFilename(), SMLoc()); } @@ -616,11 +616,11 @@ void CodeViewDebug::endModule() { // This subsection holds a file index to offset in string table table. OS.AddComment("File index to string table offset subsection"); - OS.EmitCVFileChecksumsDirective(); + OS.emitCVFileChecksumsDirective(); // This subsection holds the string table. OS.AddComment("String table"); - OS.EmitCVStringTableDirective(); + OS.emitCVStringTableDirective(); // Emit S_BUILDINFO, which points to LF_BUILDINFO. Put this in its own symbol // subsection in the generic .debug$S section at the end. There is no @@ -888,7 +888,7 @@ void CodeViewDebug::emitInlineeLinesSubsection() { OS.AddComment("Type index of inlined function"); OS.emitInt32(InlineeIdx.getIndex()); OS.AddComment("Offset into filechecksum table"); - OS.EmitCVFileChecksumOffsetDirective(FileId); + OS.emitCVFileChecksumOffsetDirective(FileId); OS.AddComment("Starting line number"); OS.emitInt32(SP->getLine()); } @@ -915,7 +915,7 @@ void CodeViewDebug::emitInlinedCallSite(const FunctionInfo &FI, unsigned FileId = maybeRecordFile(Site.Inlinee->getFile()); unsigned StartLineNum = Site.Inlinee->getLine(); - OS.EmitCVInlineLinetableDirective(Site.SiteFuncId, FileId, StartLineNum, + OS.emitCVInlineLinetableDirective(Site.SiteFuncId, FileId, StartLineNum, FI.Begin, FI.End); endSymbolRecord(InlineEnd); @@ -1141,7 +1141,7 @@ void CodeViewDebug::emitDebugInfoForFunction(const Function *GV, endCVSubsection(SymbolsEnd); // We have an assembler directive that takes care of the whole line table. - OS.EmitCVLinetableDirective(FI.FuncId, Fn, FI.End); + OS.emitCVLinetableDirective(FI.FuncId, Fn, FI.End); } CodeViewDebug::LocalVarDefRange @@ -2677,7 +2677,7 @@ void CodeViewDebug::emitLocalVariable(const FunctionInfo &FI, : (EncFP == FI.EncodedLocalFramePtrReg))) { DefRangeFramePointerRelHeader DRHdr; DRHdr.Offset = Offset; - OS.EmitCVDefRangeDirective(DefRange.Ranges, DRHdr); + OS.emitCVDefRangeDirective(DefRange.Ranges, DRHdr); } else { uint16_t RegRelFlags = 0; if (DefRange.IsSubfield) { @@ -2689,7 +2689,7 @@ void CodeViewDebug::emitLocalVariable(const FunctionInfo &FI, DRHdr.Register = Reg; DRHdr.Flags = RegRelFlags; DRHdr.BasePointerOffset = Offset; - OS.EmitCVDefRangeDirective(DefRange.Ranges, DRHdr); + OS.emitCVDefRangeDirective(DefRange.Ranges, DRHdr); } } else { assert(DefRange.DataOffset == 0 && "unexpected offset into register"); @@ -2698,12 +2698,12 @@ void CodeViewDebug::emitLocalVariable(const FunctionInfo &FI, DRHdr.Register = DefRange.CVRegister; DRHdr.MayHaveNoName = 0; DRHdr.OffsetInParent = DefRange.StructOffset; - OS.EmitCVDefRangeDirective(DefRange.Ranges, DRHdr); + OS.emitCVDefRangeDirective(DefRange.Ranges, DRHdr); } else { DefRangeRegisterHeader DRHdr; DRHdr.Register = DefRange.CVRegister; DRHdr.MayHaveNoName = 0; - OS.EmitCVDefRangeDirective(DefRange.Ranges, DRHdr); + OS.emitCVDefRangeDirective(DefRange.Ranges, DRHdr); } } } diff --git a/llvm/lib/MC/MCAsmStreamer.cpp b/llvm/lib/MC/MCAsmStreamer.cpp index 20a9a1cb..3f18417 100644 --- a/llvm/lib/MC/MCAsmStreamer.cpp +++ b/llvm/lib/MC/MCAsmStreamer.cpp @@ -137,7 +137,7 @@ public: /// @name MCStreamer Interface /// @{ - void ChangeSection(MCSection *Section, const MCExpr *Subsection) override; + void changeSection(MCSection *Section, const MCExpr *Subsection) override; void emitELFSymverDirective(StringRef AliasName, const MCSymbol *Aliasee) override; @@ -254,12 +254,12 @@ public: bool EmitCVInlineSiteIdDirective(unsigned FunctionId, unsigned IAFunc, unsigned IAFile, unsigned IALine, unsigned IACol, SMLoc Loc) override; - void EmitCVLocDirective(unsigned FunctionId, unsigned FileNo, unsigned Line, + void emitCVLocDirective(unsigned FunctionId, unsigned FileNo, unsigned Line, unsigned Column, bool PrologueEnd, bool IsStmt, StringRef FileName, SMLoc Loc) override; - void EmitCVLinetableDirective(unsigned FunctionId, const MCSymbol *FnStart, + void emitCVLinetableDirective(unsigned FunctionId, const MCSymbol *FnStart, const MCSymbol *FnEnd) override; - void EmitCVInlineLinetableDirective(unsigned PrimaryFunctionId, + void emitCVInlineLinetableDirective(unsigned PrimaryFunctionId, unsigned SourceFileId, unsigned SourceLineNum, const MCSymbol *FnStartSym, @@ -268,25 +268,25 @@ public: void PrintCVDefRangePrefix( ArrayRef> Ranges); - void EmitCVDefRangeDirective( + void emitCVDefRangeDirective( ArrayRef> Ranges, codeview::DefRangeRegisterRelHeader DRHdr) override; - void EmitCVDefRangeDirective( + void emitCVDefRangeDirective( ArrayRef> Ranges, codeview::DefRangeSubfieldRegisterHeader DRHdr) override; - void EmitCVDefRangeDirective( + void emitCVDefRangeDirective( ArrayRef> Ranges, codeview::DefRangeRegisterHeader DRHdr) override; - void EmitCVDefRangeDirective( + void emitCVDefRangeDirective( ArrayRef> Ranges, codeview::DefRangeFramePointerRelHeader DRHdr) override; - void EmitCVStringTableDirective() override; - void EmitCVFileChecksumsDirective() override; - void EmitCVFileChecksumOffsetDirective(unsigned FileNo) override; + void emitCVStringTableDirective() override; + void emitCVFileChecksumsDirective() override; + void emitCVFileChecksumOffsetDirective(unsigned FileNo) override; void EmitCVFPOData(const MCSymbol *ProcSym, SMLoc L) override; void emitIdent(StringRef IdentString) override; @@ -354,7 +354,7 @@ public: /// hasRawTextSupport() predicate. void emitRawTextImpl(StringRef String) override; - void FinishImpl() override; + void finishImpl() override; }; } // end anonymous namespace. @@ -446,7 +446,7 @@ void MCAsmStreamer::emitExplicitComments() { ExplicitCommentToEmit.clear(); } -void MCAsmStreamer::ChangeSection(MCSection *Section, +void MCAsmStreamer::changeSection(MCSection *Section, const MCExpr *Subsection) { assert(Section && "Cannot switch to a null section!"); if (MCTargetStreamer *TS = getTargetStreamer()) { @@ -1399,7 +1399,7 @@ bool MCAsmStreamer::EmitCVInlineSiteIdDirective(unsigned FunctionId, IALine, IACol, Loc); } -void MCAsmStreamer::EmitCVLocDirective(unsigned FunctionId, unsigned FileNo, +void MCAsmStreamer::emitCVLocDirective(unsigned FunctionId, unsigned FileNo, unsigned Line, unsigned Column, bool PrologueEnd, bool IsStmt, StringRef FileName, SMLoc Loc) { @@ -1423,7 +1423,7 @@ void MCAsmStreamer::EmitCVLocDirective(unsigned FunctionId, unsigned FileNo, EmitEOL(); } -void MCAsmStreamer::EmitCVLinetableDirective(unsigned FunctionId, +void MCAsmStreamer::emitCVLinetableDirective(unsigned FunctionId, const MCSymbol *FnStart, const MCSymbol *FnEnd) { OS << "\t.cv_linetable\t" << FunctionId << ", "; @@ -1431,10 +1431,10 @@ void MCAsmStreamer::EmitCVLinetableDirective(unsigned FunctionId, OS << ", "; FnEnd->print(OS, MAI); EmitEOL(); - this->MCStreamer::EmitCVLinetableDirective(FunctionId, FnStart, FnEnd); + this->MCStreamer::emitCVLinetableDirective(FunctionId, FnStart, FnEnd); } -void MCAsmStreamer::EmitCVInlineLinetableDirective(unsigned PrimaryFunctionId, +void MCAsmStreamer::emitCVInlineLinetableDirective(unsigned PrimaryFunctionId, unsigned SourceFileId, unsigned SourceLineNum, const MCSymbol *FnStartSym, @@ -1445,7 +1445,7 @@ void MCAsmStreamer::EmitCVInlineLinetableDirective(unsigned PrimaryFunctionId, OS << ' '; FnEndSym->print(OS, MAI); EmitEOL(); - this->MCStreamer::EmitCVInlineLinetableDirective( + this->MCStreamer::emitCVInlineLinetableDirective( PrimaryFunctionId, SourceFileId, SourceLineNum, FnStartSym, FnEndSym); } @@ -1460,7 +1460,7 @@ void MCAsmStreamer::PrintCVDefRangePrefix( } } -void MCAsmStreamer::EmitCVDefRangeDirective( +void MCAsmStreamer::emitCVDefRangeDirective( ArrayRef> Ranges, codeview::DefRangeRegisterRelHeader DRHdr) { PrintCVDefRangePrefix(Ranges); @@ -1470,7 +1470,7 @@ void MCAsmStreamer::EmitCVDefRangeDirective( EmitEOL(); } -void MCAsmStreamer::EmitCVDefRangeDirective( +void MCAsmStreamer::emitCVDefRangeDirective( ArrayRef> Ranges, codeview::DefRangeSubfieldRegisterHeader DRHdr) { PrintCVDefRangePrefix(Ranges); @@ -1479,7 +1479,7 @@ void MCAsmStreamer::EmitCVDefRangeDirective( EmitEOL(); } -void MCAsmStreamer::EmitCVDefRangeDirective( +void MCAsmStreamer::emitCVDefRangeDirective( ArrayRef> Ranges, codeview::DefRangeRegisterHeader DRHdr) { PrintCVDefRangePrefix(Ranges); @@ -1488,7 +1488,7 @@ void MCAsmStreamer::EmitCVDefRangeDirective( EmitEOL(); } -void MCAsmStreamer::EmitCVDefRangeDirective( +void MCAsmStreamer::emitCVDefRangeDirective( ArrayRef> Ranges, codeview::DefRangeFramePointerRelHeader DRHdr) { PrintCVDefRangePrefix(Ranges); @@ -1497,17 +1497,17 @@ void MCAsmStreamer::EmitCVDefRangeDirective( EmitEOL(); } -void MCAsmStreamer::EmitCVStringTableDirective() { +void MCAsmStreamer::emitCVStringTableDirective() { OS << "\t.cv_stringtable"; EmitEOL(); } -void MCAsmStreamer::EmitCVFileChecksumsDirective() { +void MCAsmStreamer::emitCVFileChecksumsDirective() { OS << "\t.cv_filechecksums"; EmitEOL(); } -void MCAsmStreamer::EmitCVFileChecksumOffsetDirective(unsigned FileNo) { +void MCAsmStreamer::emitCVFileChecksumOffsetDirective(unsigned FileNo) { OS << "\t.cv_filechecksumoffset\t" << FileNo; EmitEOL(); } @@ -2032,7 +2032,7 @@ void MCAsmStreamer::emitRawTextImpl(StringRef String) { EmitEOL(); } -void MCAsmStreamer::FinishImpl() { +void MCAsmStreamer::finishImpl() { // If we are generating dwarf for assembly source files dump out the sections. if (getContext().getGenDwarfForAssembly()) MCGenDwarfInfo::Emit(this); diff --git a/llvm/lib/MC/MCCodeView.cpp b/llvm/lib/MC/MCCodeView.cpp index 8dda75e..7849196 100644 --- a/llvm/lib/MC/MCCodeView.cpp +++ b/llvm/lib/MC/MCCodeView.cpp @@ -358,7 +358,7 @@ void CodeViewContext::emitLineTableForFunction(MCObjectStreamer &OS, Twine(getStringTableFragment() ->getContents()[Files[CurFileNum - 1].StringTableOffset]) + "' begins"); - OS.EmitCVFileChecksumOffsetDirective(CurFileNum); + OS.emitCVFileChecksumOffsetDirective(CurFileNum); OS.emitInt32(EntryCount); uint32_t SegmentSize = 12; SegmentSize += 8 * EntryCount; diff --git a/llvm/lib/MC/MCELFStreamer.cpp b/llvm/lib/MC/MCELFStreamer.cpp index 130133c..8921c29 100644 --- a/llvm/lib/MC/MCELFStreamer.cpp +++ b/llvm/lib/MC/MCELFStreamer.cpp @@ -143,7 +143,7 @@ static void setSectionAlignmentForBundling(const MCAssembler &Assembler, Section->setAlignment(Align(Assembler.getBundleAlignSize())); } -void MCELFStreamer::ChangeSection(MCSection *Section, +void MCELFStreamer::changeSection(MCSection *Section, const MCExpr *Subsection) { MCSection *CurSection = getCurrentSectionOnly(); if (CurSection && isBundleLocked()) @@ -491,9 +491,9 @@ void MCELFStreamer::finalizeCGProfile() { } } -void MCELFStreamer::EmitInstToFragment(const MCInst &Inst, +void MCELFStreamer::emitInstToFragment(const MCInst &Inst, const MCSubtargetInfo &STI) { - this->MCObjectStreamer::EmitInstToFragment(Inst, STI); + this->MCObjectStreamer::emitInstToFragment(Inst, STI); MCRelaxableFragment &F = *cast(getCurrentFragment()); for (unsigned i = 0, e = F.getFixups().size(); i != e; ++i) @@ -665,15 +665,15 @@ void MCELFStreamer::emitBundleUnlock() { Sec.setBundleLockState(MCSection::NotBundleLocked); } -void MCELFStreamer::FinishImpl() { +void MCELFStreamer::finishImpl() { // Ensure the last section gets aligned if necessary. MCSection *CurSection = getCurrentSectionOnly(); setSectionAlignmentForBundling(getAssembler(), CurSection); finalizeCGProfile(); - EmitFrames(nullptr); + emitFrames(nullptr); - this->MCObjectStreamer::FinishImpl(); + this->MCObjectStreamer::finishImpl(); } void MCELFStreamer::emitThumbFunc(MCSymbol *Func) { diff --git a/llvm/lib/MC/MCMachOStreamer.cpp b/llvm/lib/MC/MCMachOStreamer.cpp index 0c28801..a59d082 100644 --- a/llvm/lib/MC/MCMachOStreamer.cpp +++ b/llvm/lib/MC/MCMachOStreamer.cpp @@ -81,7 +81,7 @@ public: /// @name MCStreamer Interface /// @{ - void ChangeSection(MCSection *Sect, const MCExpr *Subsect) override; + void changeSection(MCSection *Sect, const MCExpr *Subsect) override; void emitLabel(MCSymbol *Symbol, SMLoc Loc = SMLoc()) override; void emitAssignment(MCSymbol *Symbol, const MCExpr *Value) override; void emitEHSymAttributes(const MCSymbol *Symbol, MCSymbol *EHSymbol) override; @@ -114,7 +114,7 @@ public: getAssembler().getLOHContainer().addDirective(Kind, Args); } - void FinishImpl() override; + void finishImpl() override; }; } // end anonymous namespace. @@ -146,7 +146,7 @@ static bool canGoAfterDWARF(const MCSectionMachO &MSec) { return false; } -void MCMachOStreamer::ChangeSection(MCSection *Section, +void MCMachOStreamer::changeSection(MCSection *Section, const MCExpr *Subsection) { // Change the section normally. bool Created = changeSectionImpl(Section, Subsection); @@ -472,8 +472,8 @@ void MCMachOStreamer::emitInstToData(const MCInst &Inst, DF->getContents().append(Code.begin(), Code.end()); } -void MCMachOStreamer::FinishImpl() { - EmitFrames(&getAssembler().getBackend()); +void MCMachOStreamer::finishImpl() { + emitFrames(&getAssembler().getBackend()); // We have to set the fragment atom associations so we can relax properly for // Mach-O. @@ -502,7 +502,7 @@ void MCMachOStreamer::FinishImpl() { } } - this->MCObjectStreamer::FinishImpl(); + this->MCObjectStreamer::finishImpl(); } MCStreamer *llvm::createMachOStreamer(MCContext &Context, diff --git a/llvm/lib/MC/MCObjectStreamer.cpp b/llvm/lib/MC/MCObjectStreamer.cpp index 98b4f9b..5bb8e76 100644 --- a/llvm/lib/MC/MCObjectStreamer.cpp +++ b/llvm/lib/MC/MCObjectStreamer.cpp @@ -171,7 +171,7 @@ void MCObjectStreamer::reset() { MCStreamer::reset(); } -void MCObjectStreamer::EmitFrames(MCAsmBackend *MAB) { +void MCObjectStreamer::emitFrames(MCAsmBackend *MAB) { if (!getNumFrameInfos()) return; @@ -332,7 +332,7 @@ void MCObjectStreamer::emitWeakReference(MCSymbol *Alias, report_fatal_error("This file format doesn't support weak aliases."); } -void MCObjectStreamer::ChangeSection(MCSection *Section, +void MCObjectStreamer::changeSection(MCSection *Section, const MCExpr *Subsection) { changeSectionImpl(Section, Subsection); } @@ -414,10 +414,10 @@ void MCObjectStreamer::emitInstructionImpl(const MCInst &Inst, } // Otherwise emit to a separate fragment. - EmitInstToFragment(Inst, STI); + emitInstToFragment(Inst, STI); } -void MCObjectStreamer::EmitInstToFragment(const MCInst &Inst, +void MCObjectStreamer::emitInstToFragment(const MCInst &Inst, const MCSubtargetInfo &STI) { if (getAssembler().getRelaxAll() && getAssembler().isBundlingEnabled()) llvm_unreachable("All instructions should have already been relaxed"); @@ -519,7 +519,7 @@ void MCObjectStreamer::emitDwarfAdvanceFrameAddr(const MCSymbol *LastLabel, insert(new MCDwarfCallFrameFragment(*AddrDelta)); } -void MCObjectStreamer::EmitCVLocDirective(unsigned FunctionId, unsigned FileNo, +void MCObjectStreamer::emitCVLocDirective(unsigned FunctionId, unsigned FileNo, unsigned Line, unsigned Column, bool PrologueEnd, bool IsStmt, StringRef FileName, SMLoc Loc) { @@ -535,25 +535,25 @@ void MCObjectStreamer::EmitCVLocDirective(unsigned FunctionId, unsigned FileNo, IsStmt); } -void MCObjectStreamer::EmitCVLinetableDirective(unsigned FunctionId, +void MCObjectStreamer::emitCVLinetableDirective(unsigned FunctionId, const MCSymbol *Begin, const MCSymbol *End) { getContext().getCVContext().emitLineTableForFunction(*this, FunctionId, Begin, End); - this->MCStreamer::EmitCVLinetableDirective(FunctionId, Begin, End); + this->MCStreamer::emitCVLinetableDirective(FunctionId, Begin, End); } -void MCObjectStreamer::EmitCVInlineLinetableDirective( +void MCObjectStreamer::emitCVInlineLinetableDirective( unsigned PrimaryFunctionId, unsigned SourceFileId, unsigned SourceLineNum, const MCSymbol *FnStartSym, const MCSymbol *FnEndSym) { getContext().getCVContext().emitInlineLineTableForFunction( *this, PrimaryFunctionId, SourceFileId, SourceLineNum, FnStartSym, FnEndSym); - this->MCStreamer::EmitCVInlineLinetableDirective( + this->MCStreamer::emitCVInlineLinetableDirective( PrimaryFunctionId, SourceFileId, SourceLineNum, FnStartSym, FnEndSym); } -void MCObjectStreamer::EmitCVDefRangeDirective( +void MCObjectStreamer::emitCVDefRangeDirective( ArrayRef> Ranges, StringRef FixedSizePortion) { MCFragment *Frag = @@ -561,17 +561,17 @@ void MCObjectStreamer::EmitCVDefRangeDirective( // Attach labels that were pending before we created the defrange fragment to // the beginning of the new fragment. flushPendingLabels(Frag, 0); - this->MCStreamer::EmitCVDefRangeDirective(Ranges, FixedSizePortion); + this->MCStreamer::emitCVDefRangeDirective(Ranges, FixedSizePortion); } -void MCObjectStreamer::EmitCVStringTableDirective() { +void MCObjectStreamer::emitCVStringTableDirective() { getContext().getCVContext().emitStringTable(*this); } -void MCObjectStreamer::EmitCVFileChecksumsDirective() { +void MCObjectStreamer::emitCVFileChecksumsDirective() { getContext().getCVContext().emitFileChecksums(*this); } -void MCObjectStreamer::EmitCVFileChecksumOffsetDirective(unsigned FileNo) { +void MCObjectStreamer::emitCVFileChecksumOffsetDirective(unsigned FileNo) { getContext().getCVContext().emitFileChecksumOffset(*this, FileNo); } @@ -759,7 +759,7 @@ void MCObjectStreamer::emitAddrsigSym(const MCSymbol *Sym) { getAssembler().getWriter().addAddrsigSymbol(Sym); } -void MCObjectStreamer::FinishImpl() { +void MCObjectStreamer::finishImpl() { getContext().RemapDebugPaths(); // If we are generating dwarf for assembly source files dump out the sections. diff --git a/llvm/lib/MC/MCParser/AsmParser.cpp b/llvm/lib/MC/MCParser/AsmParser.cpp index 3ae4348..1cb30ae 100644 --- a/llvm/lib/MC/MCParser/AsmParser.cpp +++ b/llvm/lib/MC/MCParser/AsmParser.cpp @@ -3802,7 +3802,7 @@ bool AsmParser::parseDirectiveCVLoc() { if (parseMany(parseOp, false /*hasComma*/)) return true; - getStreamer().EmitCVLocDirective(FunctionId, FileNumber, LineNumber, + getStreamer().emitCVLocDirective(FunctionId, FileNumber, LineNumber, ColumnPos, PrologueEnd, IsStmt, StringRef(), DirectiveLoc); return false; @@ -3828,7 +3828,7 @@ bool AsmParser::parseDirectiveCVLinetable() { MCSymbol *FnStartSym = getContext().getOrCreateSymbol(FnStartName); MCSymbol *FnEndSym = getContext().getOrCreateSymbol(FnEndName); - getStreamer().EmitCVLinetableDirective(FunctionId, FnStartSym, FnEndSym); + getStreamer().emitCVLinetableDirective(FunctionId, FnStartSym, FnEndSym); return false; } @@ -3862,7 +3862,7 @@ bool AsmParser::parseDirectiveCVInlineLinetable() { MCSymbol *FnStartSym = getContext().getOrCreateSymbol(FnStartName); MCSymbol *FnEndSym = getContext().getOrCreateSymbol(FnEndName); - getStreamer().EmitCVInlineLinetableDirective(PrimaryFunctionId, SourceFileId, + getStreamer().emitCVInlineLinetableDirective(PrimaryFunctionId, SourceFileId, SourceLineNum, FnStartSym, FnEndSym); return false; @@ -3919,7 +3919,7 @@ bool AsmParser::parseDirectiveCVDefRange() { codeview::DefRangeRegisterHeader DRHdr; DRHdr.Register = DRRegister; DRHdr.MayHaveNoName = 0; - getStreamer().EmitCVDefRangeDirective(Ranges, DRHdr); + getStreamer().emitCVDefRangeDirective(Ranges, DRHdr); break; } case CVDR_DEFRANGE_FRAMEPOINTER_REL: { @@ -3931,7 +3931,7 @@ bool AsmParser::parseDirectiveCVDefRange() { codeview::DefRangeFramePointerRelHeader DRHdr; DRHdr.Offset = DROffset; - getStreamer().EmitCVDefRangeDirective(Ranges, DRHdr); + getStreamer().emitCVDefRangeDirective(Ranges, DRHdr); break; } case CVDR_DEFRANGE_SUBFIELD_REGISTER: { @@ -3950,7 +3950,7 @@ bool AsmParser::parseDirectiveCVDefRange() { DRHdr.Register = DRRegister; DRHdr.MayHaveNoName = 0; DRHdr.OffsetInParent = DROffsetInParent; - getStreamer().EmitCVDefRangeDirective(Ranges, DRHdr); + getStreamer().emitCVDefRangeDirective(Ranges, DRHdr); break; } case CVDR_DEFRANGE_REGISTER_REL: { @@ -3975,7 +3975,7 @@ bool AsmParser::parseDirectiveCVDefRange() { DRHdr.Register = DRRegister; DRHdr.Flags = DRFlags; DRHdr.BasePointerOffset = DRBasePointerOffset; - getStreamer().EmitCVDefRangeDirective(Ranges, DRHdr); + getStreamer().emitCVDefRangeDirective(Ranges, DRHdr); break; } default: @@ -4001,14 +4001,14 @@ bool AsmParser::parseDirectiveCVString() { /// parseDirectiveCVStringTable /// ::= .cv_stringtable bool AsmParser::parseDirectiveCVStringTable() { - getStreamer().EmitCVStringTableDirective(); + getStreamer().emitCVStringTableDirective(); return false; } /// parseDirectiveCVFileChecksums /// ::= .cv_filechecksums bool AsmParser::parseDirectiveCVFileChecksums() { - getStreamer().EmitCVFileChecksumsDirective(); + getStreamer().emitCVFileChecksumsDirective(); return false; } @@ -4020,7 +4020,7 @@ bool AsmParser::parseDirectiveCVFileChecksumOffset() { return true; if (parseToken(AsmToken::EndOfStatement, "Expected End of Statement")) return true; - getStreamer().EmitCVFileChecksumOffsetDirective(FileNo); + getStreamer().emitCVFileChecksumOffsetDirective(FileNo); return false; } diff --git a/llvm/lib/MC/MCParser/MasmParser.cpp b/llvm/lib/MC/MCParser/MasmParser.cpp index 1ef848d..ad44fd5 100644 --- a/llvm/lib/MC/MCParser/MasmParser.cpp +++ b/llvm/lib/MC/MCParser/MasmParser.cpp @@ -3509,7 +3509,7 @@ bool MasmParser::parseDirectiveCVLoc() { if (parseMany(parseOp, false /*hasComma*/)) return true; - getStreamer().EmitCVLocDirective(FunctionId, FileNumber, LineNumber, + getStreamer().emitCVLocDirective(FunctionId, FileNumber, LineNumber, ColumnPos, PrologueEnd, IsStmt, StringRef(), DirectiveLoc); return false; @@ -3535,7 +3535,7 @@ bool MasmParser::parseDirectiveCVLinetable() { MCSymbol *FnStartSym = getContext().getOrCreateSymbol(FnStartName); MCSymbol *FnEndSym = getContext().getOrCreateSymbol(FnEndName); - getStreamer().EmitCVLinetableDirective(FunctionId, FnStartSym, FnEndSym); + getStreamer().emitCVLinetableDirective(FunctionId, FnStartSym, FnEndSym); return false; } @@ -3569,7 +3569,7 @@ bool MasmParser::parseDirectiveCVInlineLinetable() { MCSymbol *FnStartSym = getContext().getOrCreateSymbol(FnStartName); MCSymbol *FnEndSym = getContext().getOrCreateSymbol(FnEndName); - getStreamer().EmitCVInlineLinetableDirective(PrimaryFunctionId, SourceFileId, + getStreamer().emitCVInlineLinetableDirective(PrimaryFunctionId, SourceFileId, SourceLineNum, FnStartSym, FnEndSym); return false; @@ -3626,7 +3626,7 @@ bool MasmParser::parseDirectiveCVDefRange() { codeview::DefRangeRegisterHeader DRHdr; DRHdr.Register = DRRegister; DRHdr.MayHaveNoName = 0; - getStreamer().EmitCVDefRangeDirective(Ranges, DRHdr); + getStreamer().emitCVDefRangeDirective(Ranges, DRHdr); break; } case CVDR_DEFRANGE_FRAMEPOINTER_REL: { @@ -3638,7 +3638,7 @@ bool MasmParser::parseDirectiveCVDefRange() { codeview::DefRangeFramePointerRelHeader DRHdr; DRHdr.Offset = DROffset; - getStreamer().EmitCVDefRangeDirective(Ranges, DRHdr); + getStreamer().emitCVDefRangeDirective(Ranges, DRHdr); break; } case CVDR_DEFRANGE_SUBFIELD_REGISTER: { @@ -3657,7 +3657,7 @@ bool MasmParser::parseDirectiveCVDefRange() { DRHdr.Register = DRRegister; DRHdr.MayHaveNoName = 0; DRHdr.OffsetInParent = DROffsetInParent; - getStreamer().EmitCVDefRangeDirective(Ranges, DRHdr); + getStreamer().emitCVDefRangeDirective(Ranges, DRHdr); break; } case CVDR_DEFRANGE_REGISTER_REL: { @@ -3682,7 +3682,7 @@ bool MasmParser::parseDirectiveCVDefRange() { DRHdr.Register = DRRegister; DRHdr.Flags = DRFlags; DRHdr.BasePointerOffset = DRBasePointerOffset; - getStreamer().EmitCVDefRangeDirective(Ranges, DRHdr); + getStreamer().emitCVDefRangeDirective(Ranges, DRHdr); break; } default: @@ -3708,14 +3708,14 @@ bool MasmParser::parseDirectiveCVString() { /// parseDirectiveCVStringTable /// ::= .cv_stringtable bool MasmParser::parseDirectiveCVStringTable() { - getStreamer().EmitCVStringTableDirective(); + getStreamer().emitCVStringTableDirective(); return false; } /// parseDirectiveCVFileChecksums /// ::= .cv_filechecksums bool MasmParser::parseDirectiveCVFileChecksums() { - getStreamer().EmitCVFileChecksumsDirective(); + getStreamer().emitCVFileChecksumsDirective(); return false; } @@ -3727,7 +3727,7 @@ bool MasmParser::parseDirectiveCVFileChecksumOffset() { return true; if (parseToken(AsmToken::EndOfStatement, "Expected End of Statement")) return true; - getStreamer().EmitCVFileChecksumOffsetDirective(FileNo); + getStreamer().emitCVFileChecksumOffsetDirective(FileNo); return false; } diff --git a/llvm/lib/MC/MCStreamer.cpp b/llvm/lib/MC/MCStreamer.cpp index b8ad67c..95dad6e 100644 --- a/llvm/lib/MC/MCStreamer.cpp +++ b/llvm/lib/MC/MCStreamer.cpp @@ -288,7 +288,7 @@ bool MCStreamer::EmitCVInlineSiteIdDirective(unsigned FunctionId, FunctionId, IAFunc, IAFile, IALine, IACol); } -void MCStreamer::EmitCVLocDirective(unsigned FunctionId, unsigned FileNo, +void MCStreamer::emitCVLocDirective(unsigned FunctionId, unsigned FileNo, unsigned Line, unsigned Column, bool PrologueEnd, bool IsStmt, StringRef FileName, SMLoc Loc) {} @@ -315,11 +315,11 @@ bool MCStreamer::checkCVLocSection(unsigned FuncId, unsigned FileNo, return true; } -void MCStreamer::EmitCVLinetableDirective(unsigned FunctionId, +void MCStreamer::emitCVLinetableDirective(unsigned FunctionId, const MCSymbol *Begin, const MCSymbol *End) {} -void MCStreamer::EmitCVInlineLinetableDirective(unsigned PrimaryFunctionId, +void MCStreamer::emitCVInlineLinetableDirective(unsigned PrimaryFunctionId, unsigned SourceFileId, unsigned SourceLineNum, const MCSymbol *FnStartSym, @@ -337,42 +337,42 @@ static void copyBytesForDefRange(SmallString<20> &BytePrefix, memcpy(&BytePrefix[2], &DefRangeHeader, sizeof(T)); } -void MCStreamer::EmitCVDefRangeDirective( +void MCStreamer::emitCVDefRangeDirective( ArrayRef> Ranges, StringRef FixedSizePortion) {} -void MCStreamer::EmitCVDefRangeDirective( +void MCStreamer::emitCVDefRangeDirective( ArrayRef> Ranges, codeview::DefRangeRegisterRelHeader DRHdr) { SmallString<20> BytePrefix; copyBytesForDefRange(BytePrefix, codeview::S_DEFRANGE_REGISTER_REL, DRHdr); - EmitCVDefRangeDirective(Ranges, BytePrefix); + emitCVDefRangeDirective(Ranges, BytePrefix); } -void MCStreamer::EmitCVDefRangeDirective( +void MCStreamer::emitCVDefRangeDirective( ArrayRef> Ranges, codeview::DefRangeSubfieldRegisterHeader DRHdr) { SmallString<20> BytePrefix; copyBytesForDefRange(BytePrefix, codeview::S_DEFRANGE_SUBFIELD_REGISTER, DRHdr); - EmitCVDefRangeDirective(Ranges, BytePrefix); + emitCVDefRangeDirective(Ranges, BytePrefix); } -void MCStreamer::EmitCVDefRangeDirective( +void MCStreamer::emitCVDefRangeDirective( ArrayRef> Ranges, codeview::DefRangeRegisterHeader DRHdr) { SmallString<20> BytePrefix; copyBytesForDefRange(BytePrefix, codeview::S_DEFRANGE_REGISTER, DRHdr); - EmitCVDefRangeDirective(Ranges, BytePrefix); + emitCVDefRangeDirective(Ranges, BytePrefix); } -void MCStreamer::EmitCVDefRangeDirective( +void MCStreamer::emitCVDefRangeDirective( ArrayRef> Ranges, codeview::DefRangeFramePointerRelHeader DRHdr) { SmallString<20> BytePrefix; copyBytesForDefRange(BytePrefix, codeview::S_DEFRANGE_FRAMEPOINTER_REL, DRHdr); - EmitCVDefRangeDirective(Ranges, BytePrefix); + emitCVDefRangeDirective(Ranges, BytePrefix); } void MCStreamer::emitEHSymAttributes(const MCSymbol *Symbol, @@ -958,7 +958,7 @@ void MCStreamer::Finish() { if (TS) TS->finish(); - FinishImpl(); + finishImpl(); } void MCStreamer::emitAssignment(MCSymbol *Symbol, const MCExpr *Value) { @@ -1070,7 +1070,7 @@ void MCStreamer::emitLocalCommonSymbol(MCSymbol *Symbol, uint64_t Size, unsigned ByteAlignment) {} void MCStreamer::emitTBSSSymbol(MCSection *Section, MCSymbol *Symbol, uint64_t Size, unsigned ByteAlignment) {} -void MCStreamer::ChangeSection(MCSection *, const MCExpr *) {} +void MCStreamer::changeSection(MCSection *, const MCExpr *) {} void MCStreamer::emitWeakReference(MCSymbol *Alias, const MCSymbol *Symbol) {} void MCStreamer::emitBytes(StringRef Data) {} void MCStreamer::emitBinaryData(StringRef Data) { emitBytes(Data); } @@ -1091,7 +1091,7 @@ void MCStreamer::emitValueToOffset(const MCExpr *Offset, unsigned char Value, SMLoc Loc) {} void MCStreamer::emitBundleAlignMode(unsigned AlignPow2) {} void MCStreamer::emitBundleLock(bool AlignToEnd) {} -void MCStreamer::FinishImpl() {} +void MCStreamer::finishImpl() {} void MCStreamer::emitBundleUnlock() {} void MCStreamer::SwitchSection(MCSection *Section, const MCExpr *Subsection) { @@ -1099,7 +1099,7 @@ void MCStreamer::SwitchSection(MCSection *Section, const MCExpr *Subsection) { MCSectionSubPair curSection = SectionStack.back().first; SectionStack.back().second = curSection; if (MCSectionSubPair(Section, Subsection) != curSection) { - ChangeSection(Section, Subsection); + changeSection(Section, Subsection); SectionStack.back().first = MCSectionSubPair(Section, Subsection); assert(!Section->hasEnded() && "Section already ended"); MCSymbol *Sym = Section->getBeginSymbol(); diff --git a/llvm/lib/MC/MCWasmStreamer.cpp b/llvm/lib/MC/MCWasmStreamer.cpp index 3aea578..bf8b142 100644 --- a/llvm/lib/MC/MCWasmStreamer.cpp +++ b/llvm/lib/MC/MCWasmStreamer.cpp @@ -57,7 +57,7 @@ void MCWasmStreamer::emitAssemblerFlag(MCAssemblerFlag Flag) { llvm_unreachable("invalid assembler flag!"); } -void MCWasmStreamer::ChangeSection(MCSection *Section, +void MCWasmStreamer::changeSection(MCSection *Section, const MCExpr *Subsection) { MCAssembler &Asm = getAssembler(); auto *SectionWasm = cast(Section); @@ -65,7 +65,7 @@ void MCWasmStreamer::ChangeSection(MCSection *Section, if (Grp) Asm.registerSymbol(*Grp); - this->MCObjectStreamer::ChangeSection(Section, Subsection); + this->MCObjectStreamer::changeSection(Section, Subsection); Asm.registerSymbol(*Section->getBeginSymbol()); } @@ -165,9 +165,9 @@ void MCWasmStreamer::emitIdent(StringRef IdentString) { // sections in the object format } -void MCWasmStreamer::EmitInstToFragment(const MCInst &Inst, +void MCWasmStreamer::emitInstToFragment(const MCInst &Inst, const MCSubtargetInfo &STI) { - this->MCObjectStreamer::EmitInstToFragment(Inst, STI); + this->MCObjectStreamer::emitInstToFragment(Inst, STI); } void MCWasmStreamer::emitInstToData(const MCInst &Inst, @@ -191,10 +191,10 @@ void MCWasmStreamer::emitInstToData(const MCInst &Inst, DF->getContents().append(Code.begin(), Code.end()); } -void MCWasmStreamer::FinishImpl() { - EmitFrames(nullptr); +void MCWasmStreamer::finishImpl() { + emitFrames(nullptr); - this->MCObjectStreamer::FinishImpl(); + this->MCObjectStreamer::finishImpl(); } MCStreamer *llvm::createWasmStreamer(MCContext &Context, diff --git a/llvm/lib/MC/MCWinCOFFStreamer.cpp b/llvm/lib/MC/MCWinCOFFStreamer.cpp index b0a91df..7f0f7fc 100644 --- a/llvm/lib/MC/MCWinCOFFStreamer.cpp +++ b/llvm/lib/MC/MCWinCOFFStreamer.cpp @@ -328,8 +328,8 @@ void MCWinCOFFStreamer::EmitWinEHHandlerData(SMLoc Loc) { llvm_unreachable("not implemented"); } -void MCWinCOFFStreamer::FinishImpl() { - MCObjectStreamer::FinishImpl(); +void MCWinCOFFStreamer::finishImpl() { + MCObjectStreamer::finishImpl(); } void MCWinCOFFStreamer::Error(const Twine &Msg) const { diff --git a/llvm/lib/Target/AArch64/MCTargetDesc/AArch64ELFStreamer.cpp b/llvm/lib/Target/AArch64/MCTargetDesc/AArch64ELFStreamer.cpp index ab2131c..fe4c34b 100644 --- a/llvm/lib/Target/AArch64/MCTargetDesc/AArch64ELFStreamer.cpp +++ b/llvm/lib/Target/AArch64/MCTargetDesc/AArch64ELFStreamer.cpp @@ -81,14 +81,14 @@ public: std::move(Emitter)), MappingSymbolCounter(0), LastEMS(EMS_None) {} - void ChangeSection(MCSection *Section, const MCExpr *Subsection) override { + void changeSection(MCSection *Section, const MCExpr *Subsection) override { // We have to keep track of the mapping symbol state of any sections we // use. Each one should start off as EMS_None, which is provided as the // default constructor by DenseMap::lookup. LastMappingSymbols[getPreviousSection().first] = LastEMS; LastEMS = LastMappingSymbols.lookup(Section); - MCELFStreamer::ChangeSection(Section, Subsection); + MCELFStreamer::changeSection(Section, Subsection); } // Reset state between object emissions diff --git a/llvm/lib/Target/AArch64/MCTargetDesc/AArch64WinCOFFStreamer.cpp b/llvm/lib/Target/AArch64/MCTargetDesc/AArch64WinCOFFStreamer.cpp index 693fba3..03fbab5 100644 --- a/llvm/lib/Target/AArch64/MCTargetDesc/AArch64WinCOFFStreamer.cpp +++ b/llvm/lib/Target/AArch64/MCTargetDesc/AArch64WinCOFFStreamer.cpp @@ -28,7 +28,7 @@ public: void EmitWinEHHandlerData(SMLoc Loc) override; void EmitWindowsUnwindTables() override; - void FinishImpl() override; + void finishImpl() override; }; void AArch64WinCOFFStreamer::EmitWinEHHandlerData(SMLoc Loc) { @@ -45,11 +45,11 @@ void AArch64WinCOFFStreamer::EmitWindowsUnwindTables() { EHStreamer.Emit(*this); } -void AArch64WinCOFFStreamer::FinishImpl() { - EmitFrames(nullptr); +void AArch64WinCOFFStreamer::finishImpl() { + emitFrames(nullptr); EmitWindowsUnwindTables(); - MCWinCOFFStreamer::FinishImpl(); + MCWinCOFFStreamer::finishImpl(); } } // end anonymous namespace diff --git a/llvm/lib/Target/ARM/MCTargetDesc/ARMELFStreamer.cpp b/llvm/lib/Target/ARM/MCTargetDesc/ARMELFStreamer.cpp index 58768c2..876741d 100644 --- a/llvm/lib/Target/ARM/MCTargetDesc/ARMELFStreamer.cpp +++ b/llvm/lib/Target/ARM/MCTargetDesc/ARMELFStreamer.cpp @@ -444,7 +444,7 @@ public: ~ARMELFStreamer() override = default; - void FinishImpl() override; + void finishImpl() override; // ARM exception handling directives void emitFnStart(); @@ -464,9 +464,9 @@ public: MCObjectStreamer::emitFill(NumBytes, FillValue, Loc); } - void ChangeSection(MCSection *Section, const MCExpr *Subsection) override { + void changeSection(MCSection *Section, const MCExpr *Subsection) override { LastMappingSymbols[getCurrentSection().first] = std::move(LastEMSInfo); - MCELFStreamer::ChangeSection(Section, Subsection); + MCELFStreamer::changeSection(Section, Subsection); auto LastMappingSymbol = LastMappingSymbols.find(Section); if (LastMappingSymbol != LastMappingSymbols.end()) { LastEMSInfo = std::move(LastMappingSymbol->second); @@ -1163,12 +1163,12 @@ void ARMTargetELFStreamer::emitInst(uint32_t Inst, char Suffix) { void ARMTargetELFStreamer::reset() { AttributeSection = nullptr; } -void ARMELFStreamer::FinishImpl() { +void ARMELFStreamer::finishImpl() { MCTargetStreamer &TS = *getTargetStreamer(); ARMTargetStreamer &ATS = static_cast(TS); ATS.finishAttributeSection(); - MCELFStreamer::FinishImpl(); + MCELFStreamer::finishImpl(); } void ARMELFStreamer::reset() { diff --git a/llvm/lib/Target/ARM/MCTargetDesc/ARMWinCOFFStreamer.cpp b/llvm/lib/Target/ARM/MCTargetDesc/ARMWinCOFFStreamer.cpp index 839b670..e6f6491 100644 --- a/llvm/lib/Target/ARM/MCTargetDesc/ARMWinCOFFStreamer.cpp +++ b/llvm/lib/Target/ARM/MCTargetDesc/ARMWinCOFFStreamer.cpp @@ -23,17 +23,17 @@ public: : MCWinCOFFStreamer(C, std::move(AB), std::move(CE), std::move(OW)) {} void emitThumbFunc(MCSymbol *Symbol) override; - void FinishImpl() override; + void finishImpl() override; }; void ARMWinCOFFStreamer::emitThumbFunc(MCSymbol *Symbol) { getAssembler().setIsThumbFunc(Symbol); } -void ARMWinCOFFStreamer::FinishImpl() { - EmitFrames(nullptr); +void ARMWinCOFFStreamer::finishImpl() { + emitFrames(nullptr); - MCWinCOFFStreamer::FinishImpl(); + MCWinCOFFStreamer::finishImpl(); } } diff --git a/llvm/lib/Target/X86/MCTargetDesc/X86WinCOFFStreamer.cpp b/llvm/lib/Target/X86/MCTargetDesc/X86WinCOFFStreamer.cpp index db62437..3bebcc24 100644 --- a/llvm/lib/Target/X86/MCTargetDesc/X86WinCOFFStreamer.cpp +++ b/llvm/lib/Target/X86/MCTargetDesc/X86WinCOFFStreamer.cpp @@ -28,7 +28,7 @@ public: void EmitWinEHHandlerData(SMLoc Loc) override; void EmitWindowsUnwindTables() override; void EmitCVFPOData(const MCSymbol *ProcSym, SMLoc Loc) override; - void FinishImpl() override; + void finishImpl() override; }; void X86WinCOFFStreamer::EmitWinEHHandlerData(SMLoc Loc) { @@ -52,11 +52,11 @@ void X86WinCOFFStreamer::EmitCVFPOData(const MCSymbol *ProcSym, SMLoc Loc) { XTS->emitFPOData(ProcSym, Loc); } -void X86WinCOFFStreamer::FinishImpl() { - EmitFrames(nullptr); +void X86WinCOFFStreamer::finishImpl() { + emitFrames(nullptr); EmitWindowsUnwindTables(); - MCWinCOFFStreamer::FinishImpl(); + MCWinCOFFStreamer::finishImpl(); } } -- 2.7.4