Introduce new error handling API.
authorTorok Edwin <edwintorok@gmail.com>
Tue, 7 Jul 2009 17:32:34 +0000 (17:32 +0000)
committerTorok Edwin <edwintorok@gmail.com>
Tue, 7 Jul 2009 17:32:34 +0000 (17:32 +0000)
commit31e2466f159a887fed9139067a676f65adf2a8c3
tree038fcdc29c6f146048427213045ae05a3e4fe0b8
parent9903527c142a37a25ea3b2212cb04a182331fbfa
Introduce new error handling API.
This will replace exit()/abort() style error handling with an API
that allows clients to register custom error handling hooks.
The default is to call exit(1) when no error handler is provided.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74922 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Support/Compiler.h
include/llvm/Support/ErrorHandling.h [new file with mode: 0644]
lib/ExecutionEngine/ExecutionEngine.cpp
lib/ExecutionEngine/JIT/JIT.cpp
lib/Support/ErrorHandling.cpp [new file with mode: 0644]