[cfe-commits] r164660 - /cfe/trunk/lib/CodeGen/CGBuiltin.cpp
Nico Weber
nicolasweber at gmx.de
Tue Sep 25 22:40:16 PDT 2012
Author: nico
Date: Wed Sep 26 00:40:16 2012
New Revision: 164660
URL: http://llvm.org/viewvc/llvm-project?rev=164660&view=rev
Log:
Add codegen support for the __debugbreak intrinsic.
Modified:
cfe/trunk/lib/CodeGen/CGBuiltin.cpp
Modified: cfe/trunk/lib/CodeGen/CGBuiltin.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGBuiltin.cpp?rev=164660&r1=164659&r2=164660&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGBuiltin.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGBuiltin.cpp Wed Sep 26 00:40:16 2012
@@ -402,6 +402,10 @@
Value *F = CGM.getIntrinsic(Intrinsic::trap);
return RValue::get(Builder.CreateCall(F));
}
+ case Builtin::BI__debugbreak: {
+ Value *F = CGM.getIntrinsic(Intrinsic::debugtrap);
+ return RValue::get(Builder.CreateCall(F));
+ }
case Builtin::BI__builtin_unreachable: {
if (CatchUndefined)
EmitCheck(Builder.getFalse());
More information about the cfe-commits
mailing list