DirectXShaderCompiler/lib/DxcSupport
Greg Roth 9b475a7fa3
Add dxc exception handler (#3604)
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.
2021-03-18 20:37:21 -07:00
..
CMakeLists.txt [linux-port] Complete the Windows adapter code. (#1358) 2018-06-25 16:04:13 -04:00
FileIOHelper.cpp Fixed arg pairs not correct for old source in module pdbs (#3599) 2021-03-18 01:33:06 -07:00
Global.cpp [linux-port] Casts for compares and assigns (#1328) 2018-06-07 12:49:02 -04:00
HLSLOptions.cpp Add dxc exception handler (#3604) 2021-03-18 20:37:21 -07:00
LLVMBuild.txt [linux-port] Define LLVMBuild.txt for DxcSupport. (#1292) 2018-05-17 22:55:54 -04:00
Unicode.cpp Integrate dxcapi v2 and other changes from internal (#2575) 2019-11-13 16:16:45 -08:00
WinAdapter.cpp [linux-port] Support full IID comparison on GCC (#3062) 2020-11-20 15:18:05 -08:00
WinFunctions.cpp [linux-port] Add definition of strnicmp for Linux. (#1567) 2018-09-25 17:24:59 -04:00
dxcapi.use.cpp Integrate dxcapi v2 and other changes from internal (#2575) 2019-11-13 16:16:45 -08:00
dxcmem.cpp Fix dxilconv crash when initialization fails (#3254) 2020-11-11 15:10:18 -08:00