From 76bcbaafab2db9ee1fa0813463016afb64c5fb41 Mon Sep 17 00:00:00 2001 From: Lang Hames Date: Wed, 20 Nov 2019 17:27:44 -0800 Subject: [Orc][Modules] Fix Modules build fallout from a34680a33eb. In a34680a33eb OrcError.h and Orc/RPC/*.h were split out from the rest of ExecutionEngine in order to eliminate false dependencies for remote JIT targets (see https://reviews.llvm.org/D68732), however this broke modules builds (see https://reviews.llvm.org/D69817). This patch splits these headers out into a separate module, LLVM_OrcSupport, in order to fix the modules build. Fixes . --- llvm/lib/Support/Error.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'llvm/lib/Support/Error.cpp') diff --git a/llvm/lib/Support/Error.cpp b/llvm/lib/Support/Error.cpp index 9ea08c37478..27e0a49e9b8 100644 --- a/llvm/lib/Support/Error.cpp +++ b/llvm/lib/Support/Error.cpp @@ -10,6 +10,7 @@ #include "llvm/ADT/Twine.h" #include "llvm/Support/ErrorHandling.h" #include "llvm/Support/ManagedStatic.h" +#include "llvm/Support/Signals.h" #include using namespace llvm; @@ -103,11 +104,13 @@ std::error_code errorToErrorCode(Error Err) { #if LLVM_ENABLE_ABI_BREAKING_CHECKS void Error::fatalUncheckedError() const { dbgs() << "Program aborted due to an unhandled Error:\n"; - if (getPtr()) + if (getPtr()) { getPtr()->log(dbgs()); - else + dbgs() << "\n"; + }else dbgs() << "Error value was Success. (Note: Success values must still be " "checked prior to being destroyed).\n"; + PrintStackTrace(); abort(); } #endif -- cgit v1.2.3