Skip to content

Commit 624b683

Browse files
committed
Remove function that is not used.
1 parent 941717d commit 624b683

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

llvm/lib/Target/RISCV/RISCVTargetMachine.cpp

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -146,14 +146,6 @@ static Reloc::Model getEffectiveRelocModel(const Triple &TT,
146146
return RM.value_or(Reloc::Static);
147147
}
148148

149-
static std::unique_ptr<TargetLoweringObjectFile> createTLOF(const Triple &TT) {
150-
if (TT.isOSBinFormatELF())
151-
return std::make_unique<RISCVELFTargetObjectFile>();
152-
if (TT.isOSBinFormatMachO())
153-
return std::make_unique<TargetLoweringObjectFileMachO>();
154-
return std::unique_ptr<TargetLoweringObjectFile>();
155-
}
156-
157149
RISCVTargetMachine::RISCVTargetMachine(const Target &T, const Triple &TT,
158150
StringRef CPU, StringRef FS,
159151
const TargetOptions &Options,

0 commit comments

Comments
 (0)