| 1243 | |
| 1244 | private: |
| 1245 | FileError(const Twine &F, Optional<size_t> LineNum, |
| 1246 | std::unique_ptr<ErrorInfoBase> E) { |
| 1247 | assert(E && "Cannot create FileError from Error success value."); |
| 1248 | assert(!F.isTriviallyEmpty() && |
| 1249 | "The file name provided to FileError must not be empty."); |
| 1250 | FileName = F.str(); |
| 1251 | Err = std::move(E); |
| 1252 | Line = std::move(LineNum); |
| 1253 | } |
| 1254 | |
| 1255 | static Error build(const Twine &F, Optional<size_t> Line, Error E) { |
| 1256 | std::unique_ptr<ErrorInfoBase> Payload; |
nothing calls this directly
no test coverage detected