diff options
author | Eric Christopher <echristo@gmail.com> | 2018-04-20 19:07:57 +0000 |
---|---|---|
committer | Eric Christopher <echristo@gmail.com> | 2018-04-20 19:07:57 +0000 |
commit | aadbabc070427fd3eaa85bb406d3d1db4ea2bac7 (patch) | |
tree | 32c11303eba7e329b9a90d5c7cad726a5dd4bd9b | |
parent | 7b17c9d05c0f8fd6be6bef48b3bf7ae4bd5f8d33 (diff) | |
download | bcm5719-llvm-aadbabc070427fd3eaa85bb406d3d1db4ea2bac7.tar.gz bcm5719-llvm-aadbabc070427fd3eaa85bb406d3d1db4ea2bac7.zip |
Remove unused argument from emitModuleMetadata.
NFCI.
llvm-svn: 330470
4 files changed, 11 insertions, 15 deletions
diff --git a/llvm/include/llvm/CodeGen/TargetLoweringObjectFileImpl.h b/llvm/include/llvm/CodeGen/TargetLoweringObjectFileImpl.h index 78da77fbd48..bdeaaa46c13 100644 --- a/llvm/include/llvm/CodeGen/TargetLoweringObjectFileImpl.h +++ b/llvm/include/llvm/CodeGen/TargetLoweringObjectFileImpl.h @@ -42,8 +42,7 @@ public: ~TargetLoweringObjectFileELF() override = default; /// Emit Obj-C garbage collection and linker options. - void emitModuleMetadata(MCStreamer &Streamer, Module &M, - const TargetMachine &TM) const override; + void emitModuleMetadata(MCStreamer &Streamer, Module &M) const override; void emitPersonalityValue(MCStreamer &Streamer, const DataLayout &TM, const MCSymbol *Sym) const override; @@ -98,8 +97,7 @@ public: void Initialize(MCContext &Ctx, const TargetMachine &TM) override; /// Emit the module flags that specify the garbage collection information. - void emitModuleMetadata(MCStreamer &Streamer, Module &M, - const TargetMachine &TM) const override; + void emitModuleMetadata(MCStreamer &Streamer, Module &M) const override; MCSection *SelectSectionForGlobal(const GlobalObject *GO, SectionKind Kind, const TargetMachine &TM) const override; @@ -153,8 +151,7 @@ public: const TargetMachine &TM) const override; /// Emit Obj-C garbage collection and linker options. - void emitModuleMetadata(MCStreamer &Streamer, Module &M, - const TargetMachine &TM) const override; + void emitModuleMetadata(MCStreamer &Streamer, Module &M) const override; MCSection *getStaticCtorSection(unsigned Priority, const MCSymbol *KeySym) const override; diff --git a/llvm/include/llvm/Target/TargetLoweringObjectFile.h b/llvm/include/llvm/Target/TargetLoweringObjectFile.h index d5ac3cd6e04..38ebe4bfb57 100644 --- a/llvm/include/llvm/Target/TargetLoweringObjectFile.h +++ b/llvm/include/llvm/Target/TargetLoweringObjectFile.h @@ -71,8 +71,7 @@ public: const MCSymbol *Sym) const; /// Emit the module-level metadata that the platform cares about. - virtual void emitModuleMetadata(MCStreamer &Streamer, Module &M, - const TargetMachine &TM) const {} + virtual void emitModuleMetadata(MCStreamer &Streamer, Module &M) const {} /// Given a constant with the SectionKind, return a section that it should be /// placed in. diff --git a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp b/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp index 1375662c8ae..f81d6d04d16 100644 --- a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp @@ -1343,7 +1343,7 @@ bool AsmPrinter::doFinalization(Module &M) { const TargetLoweringObjectFile &TLOF = getObjFileLowering(); - TLOF.emitModuleMetadata(*OutStreamer, M, TM); + TLOF.emitModuleMetadata(*OutStreamer, M); if (TM.getTargetTriple().isOSBinFormatELF()) { MachineModuleInfoELF &MMIELF = MMI->getObjFileInfo<MachineModuleInfoELF>(); diff --git a/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp b/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp index a4a54e1fb24..db96781d19f 100644 --- a/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp +++ b/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp @@ -91,8 +91,8 @@ static void GetObjCImageInfo(Module &M, unsigned &Version, unsigned &Flags, // ELF //===----------------------------------------------------------------------===// -void TargetLoweringObjectFileELF::emitModuleMetadata( - MCStreamer &Streamer, Module &M, const TargetMachine &TM) const { +void TargetLoweringObjectFileELF::emitModuleMetadata(MCStreamer &Streamer, + Module &M) const { auto &C = getContext(); if (NamedMDNode *LinkerOptions = M.getNamedMetadata("llvm.linker.options")) { @@ -634,8 +634,8 @@ void TargetLoweringObjectFileMachO::Initialize(MCContext &Ctx, } } -void TargetLoweringObjectFileMachO::emitModuleMetadata( - MCStreamer &Streamer, Module &M, const TargetMachine &TM) const { +void TargetLoweringObjectFileMachO::emitModuleMetadata(MCStreamer &Streamer, + Module &M) const { // Emit the linker options if present. if (auto *LinkerOptions = M.getNamedMetadata("llvm.linker.options")) { for (const auto &Option : LinkerOptions->operands()) { @@ -1168,8 +1168,8 @@ MCSection *TargetLoweringObjectFileCOFF::getSectionForJumpTable( COFF::IMAGE_COMDAT_SELECT_ASSOCIATIVE, UniqueID); } -void TargetLoweringObjectFileCOFF::emitModuleMetadata( - MCStreamer &Streamer, Module &M, const TargetMachine &TM) const { +void TargetLoweringObjectFileCOFF::emitModuleMetadata(MCStreamer &Streamer, + Module &M) const { if (NamedMDNode *LinkerOptions = M.getNamedMetadata("llvm.linker.options")) { // Emit the linker options to the linker .drectve section. According to the // spec, this section is a space-separated string containing flags for |