aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2018-04-20 19:07:57 +0000
committerEric Christopher <echristo@gmail.com>2018-04-20 19:07:57 +0000
commitaadbabc070427fd3eaa85bb406d3d1db4ea2bac7 (patch)
tree32c11303eba7e329b9a90d5c7cad726a5dd4bd9b /llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
parent7b17c9d05c0f8fd6be6bef48b3bf7ae4bd5f8d33 (diff)
downloadllvm-aadbabc070427fd3eaa85bb406d3d1db4ea2bac7.zip
llvm-aadbabc070427fd3eaa85bb406d3d1db4ea2bac7.tar.gz
llvm-aadbabc070427fd3eaa85bb406d3d1db4ea2bac7.tar.bz2
Remove unused argument from emitModuleMetadata.
NFCI. llvm-svn: 330470
Diffstat (limited to 'llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp')
-rw-r--r--llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp b/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
index a4a54e1..db96781 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