Reviewed By: jhenderson, MaskRay
Differential Revision: https://reviews.llvm.org/D153671
}
}
-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()) {