[Basic] Rename abortWithPrettyStackTraceMessage to ABORT

Turn it into a wrapping macro that includes the file location, and
move into `Assertions.h`.
This commit is contained in:
Hamish Knight
2025-05-19 20:55:01 +01:00
parent ffb474e0b9
commit d672f750e7
8 changed files with 90 additions and 56 deletions

View File

@@ -695,7 +695,7 @@ std::string ModuleFileSharedCore::Dependency::getPrettyPrintedPath() const {
}
void ModuleFileSharedCore::fatal(llvm::Error error) const {
abortWithPrettyStackTraceMessage([&](auto &out) {
ABORT([&](auto &out) {
out << "*** DESERIALIZATION FAILURE ***\n";
out << "*** If any module named here was modified in the SDK, please delete the ***\n";
out << "*** new swiftmodule files from the SDK and keep only swiftinterfaces. ***\n";