Skip to content
Snippets Groups Projects
Commit b6176692 authored by Thomas Köppe's avatar Thomas Köppe Committed by Fangrui Song
Browse files

[llvm-objcopy] Remove unused internal helper function template makeStringError. NFC

Reviewed By: jhenderson, MaskRay

Differential Revision: https://reviews.llvm.org/D153671
parent 599421ae
Branches
No related merge requests found
......@@ -172,13 +172,6 @@ static std::unique_ptr<Writer> createWriter(const CommonConfig &Config,
}
}
template <class... Ts>
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<Ts>(Args)...);
}
static Error dumpSectionToFile(StringRef SecName, StringRef Filename,
Object &Obj) {
for (auto &Sec : Obj.sections()) {
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment