diff --git a/llvm/lib/ObjCopy/ELF/ELFObjcopy.cpp b/llvm/lib/ObjCopy/ELF/ELFObjcopy.cpp --- a/llvm/lib/ObjCopy/ELF/ELFObjcopy.cpp +++ b/llvm/lib/ObjCopy/ELF/ELFObjcopy.cpp @@ -172,13 +172,6 @@ } } -template -static Error makeStringError(std::error_code EC, const Twine &Msg, - Ts &&...Args) { - std::string FullMsg = (EC.message() + ": " + Msg).str(); - return createStringError(EC, FullMsg.c_str(), std::forward(Args)...); -} - static Error dumpSectionToFile(StringRef SecName, StringRef Filename, Object &Obj) { for (auto &Sec : Obj.sections()) {