From 4721b6ef2dd4e1b39c85acc492f9c6af8898a34b Mon Sep 17 00:00:00 2001 From: Sam Estep Date: Thu, 7 Aug 2025 14:48:34 -0400 Subject: Update LLVM from 13.0.1 to 14.0.6 (#8031) Full set of mutually exclusive choices for upgrading LLVM: - #8031 (you are here) - #8035 - #8036 - #8034 - #8038 - #8039 - #8033 Alternative to #8028. Required some minor changes due to these upstream commits: - llvm/llvm-project@e463b69736da8b0a950ecd937cf990401bdfcdeb - llvm/llvm-project@89b57061f7b769e9ea9bf6ed686e284f3e55affe --- source/slang-llvm/slang-llvm.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'source') diff --git a/source/slang-llvm/slang-llvm.cpp b/source/slang-llvm/slang-llvm.cpp index 2860874b5..81d7a9cf6 100644 --- a/source/slang-llvm/slang-llvm.cpp +++ b/source/slang-llvm/slang-llvm.cpp @@ -28,7 +28,6 @@ #include "llvm/Support/Path.h" #include "llvm/Support/Process.h" #include "llvm/Support/Signals.h" -#include "llvm/Support/TargetRegistry.h" #include "llvm/Support/TargetSelect.h" #include "llvm/Support/TimeProfiler.h" #include "llvm/Support/Timer.h" @@ -239,12 +238,12 @@ void* LLVMJITSharedLibrary::findSymbolAddressByName(char const* name) static void _ensureSufficientStack() {} -static void _llvmErrorHandler(void* userData, const std::string& message, bool genCrashDiag) +static void _llvmErrorHandler(void* userData, const char* message, bool genCrashDiag) { // DiagnosticsEngine& diags = *static_cast(userData); // diags.Report(diag::err_fe_error_backend) << message; - printf("Clang/LLVM fatal error: %s\n", message.c_str()); + printf("Clang/LLVM fatal error: %s\n", message); // Run the interrupt handlers to make sure any special cleanups get done, in // particular that we remove files registered with RemoveFileOnSignal. -- cgit v1.2.3