mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-07 12:28:24 +00:00
Reverting r228628; it broke at least one builder due to the forward declare of RaiseException.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@228633 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -287,14 +287,6 @@
|
|||||||
/// which causes the program to exit abnormally.
|
/// which causes the program to exit abnormally.
|
||||||
#if __has_builtin(__builtin_trap) || LLVM_GNUC_PREREQ(4, 3, 0)
|
#if __has_builtin(__builtin_trap) || LLVM_GNUC_PREREQ(4, 3, 0)
|
||||||
# define LLVM_BUILTIN_TRAP __builtin_trap()
|
# define LLVM_BUILTIN_TRAP __builtin_trap()
|
||||||
#elif defined(LLVM_ON_WIN32)
|
|
||||||
extern "C" __declspec(dllimport) void __stdcall RaiseException(
|
|
||||||
unsigned long, unsigned long, unsigned long, const unsigned long *);
|
|
||||||
#define LLVM_BUILTIN_TRAP \
|
|
||||||
do { \
|
|
||||||
::RaiseException(0xDEADD0D0, 0x1 /*EXCEPTION_NONCONTINUABLE*/, 0, nullptr);\
|
|
||||||
__assume(false); \
|
|
||||||
} while (0)
|
|
||||||
#else
|
#else
|
||||||
# define LLVM_BUILTIN_TRAP *(volatile int*)0x11 = 0
|
# define LLVM_BUILTIN_TRAP *(volatile int*)0x11 = 0
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user