[llvm] b617669 - [llvm-objcopy] Remove unused internal helper function template makeStringError. NFC
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Sat Jul 15 11:22:57 PDT 2023
Author: Thomas Köppe
Date: 2023-07-15T11:22:54-07:00
New Revision: b6176692296b218c621800f3ce17fe1cf74bbffd
URL: https://github.com/llvm/llvm-project/commit/b6176692296b218c621800f3ce17fe1cf74bbffd
DIFF: https://github.com/llvm/llvm-project/commit/b6176692296b218c621800f3ce17fe1cf74bbffd.diff
LOG: [llvm-objcopy] Remove unused internal helper function template makeStringError. NFC
Reviewed By: jhenderson, MaskRay
Differential Revision: https://reviews.llvm.org/D153671
Added:
Modified:
llvm/lib/ObjCopy/ELF/ELFObjcopy.cpp
Removed:
################################################################################
diff --git a/llvm/lib/ObjCopy/ELF/ELFObjcopy.cpp b/llvm/lib/ObjCopy/ELF/ELFObjcopy.cpp
index 70bf97b1b8482c..dfe843e1d4b7a4 100644
--- a/llvm/lib/ObjCopy/ELF/ELFObjcopy.cpp
+++ b/llvm/lib/ObjCopy/ELF/ELFObjcopy.cpp
@@ -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()) {
More information about the llvm-commits
mailing list