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

Fangrui Song via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Jul 15 11:23:10 PDT 2023


This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rGb6176692296b: [llvm-objcopy] Remove unused internal helper function template makeStringError. (authored by tkoeppe, committed by MaskRay).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D153671/new/

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.540711.patch
Type: text/x-patch
Size: 658 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230715/1646c9fe/attachment.bin>


More information about the llvm-commits mailing list