9b475a7fa3
The most common cause of internal compiler errors are access violations or stack overflows. This registers an exception handler in dxc.exe for these cases that are otherwise unhandled. It prints a simple message for these errors and passes the exception along. In case this is unwanted for some reason, a hidden disabling flag is added as well. Adds LLVM builtin exceptions for assert, fatal, and unreachable. Adds a default message for exceptions not explicitly addressed. Alters behavior of llvm_unreachable so it always raises an exception regardless of compiler support for unreachable hints. Reports errors using fputs instead of std::cerr to ensure that no allocation is necessary. Custom output is performed in a static array that is output with fputs. |
||
---|---|---|
.. | ||
CMakeLists.txt | ||
FileIOHelper.cpp | ||
Global.cpp | ||
HLSLOptions.cpp | ||
LLVMBuild.txt | ||
Unicode.cpp | ||
WinAdapter.cpp | ||
WinFunctions.cpp | ||
dxcapi.use.cpp | ||
dxcmem.cpp |