mirror of
https://github.com/ziglang/zig.git
synced 2024-11-27 23:52:31 +00:00
update clang drivers to llvm10.0.0rc2
This commit is contained in:
parent
f4317e4387
commit
816b69a344
@ -36,6 +36,7 @@
|
||||
#include "llvm/Support/ErrorHandling.h"
|
||||
#include "llvm/Support/ManagedStatic.h"
|
||||
#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"
|
||||
@ -69,7 +70,7 @@ static void LLVMErrorHandler(void *UserData, const std::string &Message,
|
||||
// We cannot recover from llvm errors. When reporting a fatal error, exit
|
||||
// with status 70 to generate crash diagnostics. For BSD systems this is
|
||||
// defined as an internal software error. Otherwise, exit with status 1.
|
||||
exit(GenCrashDiag ? 70 : 1);
|
||||
llvm::sys::Process::Exit(GenCrashDiag ? 70 : 1);
|
||||
}
|
||||
|
||||
#ifdef CLANG_HAVE_RLIMITS
|
||||
|
@ -46,6 +46,7 @@
|
||||
#include "llvm/Support/Host.h"
|
||||
#include "llvm/Support/MemoryBuffer.h"
|
||||
#include "llvm/Support/Path.h"
|
||||
#include "llvm/Support/Process.h"
|
||||
#include "llvm/Support/Signals.h"
|
||||
#include "llvm/Support/SourceMgr.h"
|
||||
#include "llvm/Support/TargetRegistry.h"
|
||||
@ -547,7 +548,7 @@ static void LLVMErrorHandler(void *UserData, const std::string &Message,
|
||||
Diags.Report(diag::err_fe_error_backend) << Message;
|
||||
|
||||
// We cannot recover from llvm errors.
|
||||
exit(1);
|
||||
sys::Process::Exit(1);
|
||||
}
|
||||
|
||||
int cc1as_main(ArrayRef<const char *> Argv, const char *Argv0, void *MainAddr) {
|
||||
|
Loading…
Reference in New Issue
Block a user