HomePhabricator

Add an LLVM_BUILTIN_DEBUGTRAP macro.

Description

Add an LLVM_BUILTIN_DEBUGTRAP macro.

Summary:
This provides a macro that expands to builtin_debugtrap() for clang,
and
debugbreak() for MSVC.

It intentionally expands to nothing for compilers that do not support a
similar mechanism that halts the debugger without otherwise crashing the
process.

Differential Revision: http://reviews.llvm.org/D18002

Details

Committed
rudkxMar 9 2016, 9:15 PM
Differential Revision
D18002: Add an LLVM_BUILTIN_DEBUGTRAP macro.
Parents
rL263094: [lto] Initialize asmparsers.
Branches
Unknown
Tags
Unknown