authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2020-02-14 10:47:40-05:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2020-02-14 10:47:40-05:00
log816b69a3443c749c50a5eea4c62c0495b55fc619
treed4be33ac1d90bc683c13abb24564ed901854f0d8
parentf4317e4387925bfac93a517c1dbd28517740e021
signaturelock-open Commit is signed but in an unrecognized format.

update clang drivers to llvm10.0.0rc2


2 files changed, 4 insertions(+), 2 deletions(-)

src/zig_clang_cc1_main.cpp+2-1
......@@ -36,6 +36,7 @@
3636#include "llvm/Support/ErrorHandling.h"
3737#include "llvm/Support/ManagedStatic.h"
3838#include "llvm/Support/Path.h"
39#include "llvm/Support/Process.h"
3940#include "llvm/Support/Signals.h"
4041#include "llvm/Support/TargetRegistry.h"
4142#include "llvm/Support/TargetSelect.h"
......@@ -69,7 +70,7 @@ static void LLVMErrorHandler(void *UserData, const std::string &Message,
6970 // We cannot recover from llvm errors. When reporting a fatal error, exit
7071 // with status 70 to generate crash diagnostics. For BSD systems this is
7172 // defined as an internal software error. Otherwise, exit with status 1.
72 exit(GenCrashDiag ? 70 : 1);
73 llvm::sys::Process::Exit(GenCrashDiag ? 70 : 1);
7374}
7475
7576#ifdef CLANG_HAVE_RLIMITS
src/zig_clang_cc1as_main.cpp+2-1
......@@ -46,6 +46,7 @@
4646#include "llvm/Support/Host.h"
4747#include "llvm/Support/MemoryBuffer.h"
4848#include "llvm/Support/Path.h"
49#include "llvm/Support/Process.h"
4950#include "llvm/Support/Signals.h"
5051#include "llvm/Support/SourceMgr.h"
5152#include "llvm/Support/TargetRegistry.h"
......@@ -547,7 +548,7 @@ static void LLVMErrorHandler(void *UserData, const std::string &Message,
547548 Diags.Report(diag::err_fe_error_backend) << Message;
548549
549550 // We cannot recover from llvm errors.
550 exit(1);
551 sys::Process::Exit(1);
551552}
552553
553554int cc1as_main(ArrayRef<const char *> Argv, const char *Argv0, void *MainAddr) {