[PATCH] D153671: Remove unused internal helper function makeStringError

Thomas Köppe via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 23 16:31:30 PDT 2023


tkoeppe created this revision.
Herald added subscribers: hiraditya, emaste.
Herald added a reviewer: jhenderson.
Herald added a project: All.
tkoeppe requested review of this revision.
Herald added subscribers: llvm-commits, MaskRay.
Herald added a project: LLVM.

https://reviews.llvm.org/D153671

Files:
  llvm/lib/ObjCopy/ELF/ELFObjcopy.cpp


Index: llvm/lib/ObjCopy/ELF/ELFObjcopy.cpp
===================================================================
--- llvm/lib/ObjCopy/ELF/ELFObjcopy.cpp
+++ llvm/lib/ObjCopy/ELF/ELFObjcopy.cpp
@@ -172,13 +172,6 @@
   }
 }
 
-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()) {


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D153671.534119.patch
Type: text/x-patch
Size: 658 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230623/3ebd6cce/attachment.bin>


More information about the llvm-commits mailing list