|
@@ -41,6 +41,7 @@
|
|
#include "dxc/Support/Unicode.h"
|
|
#include "dxc/Support/Unicode.h"
|
|
#include "dxc/Support/WinIncludes.h"
|
|
#include "dxc/Support/WinIncludes.h"
|
|
#include "dxc/Support/WinFunctions.h"
|
|
#include "dxc/Support/WinFunctions.h"
|
|
|
|
+#include "dxc/dxcerrors.h"
|
|
#include "dxc.h"
|
|
#include "dxc.h"
|
|
#include <vector>
|
|
#include <vector>
|
|
#include <string>
|
|
#include <string>
|
|
@@ -1257,6 +1258,16 @@ static LONG CALLBACK ExceptionFilter(PEXCEPTION_POINTERS pExceptionInfo)
|
|
case STATUS_LLVM_FATAL:
|
|
case STATUS_LLVM_FATAL:
|
|
fputs("LLVM Fatal Error\n", stderr);
|
|
fputs("LLVM Fatal Error\n", stderr);
|
|
break;
|
|
break;
|
|
|
|
+ case EXCEPTION_LOAD_LIBRARY_FAILED:
|
|
|
|
+ if (pExceptionInfo->ExceptionRecord->ExceptionInformation[0]) {
|
|
|
|
+ fputs("cannot not load ", stderr);
|
|
|
|
+ fputws((const wchar_t*)pExceptionInfo->ExceptionRecord->ExceptionInformation[0], stderr);
|
|
|
|
+ fputs(" library.\n", stderr);
|
|
|
|
+ }
|
|
|
|
+ else{
|
|
|
|
+ fputs("cannot not load library.\n", stderr);
|
|
|
|
+ }
|
|
|
|
+ break;
|
|
default:
|
|
default:
|
|
fputs("Terminal Error ", stderr);
|
|
fputs("Terminal Error ", stderr);
|
|
sprintf_s(scratch, _countof(scratch), "0x%08x\n", pExceptionInfo->ExceptionRecord->ExceptionCode);
|
|
sprintf_s(scratch, _countof(scratch), "0x%08x\n", pExceptionInfo->ExceptionRecord->ExceptionCode);
|