diff options
author | Mike Stump <mrs@apple.com> | 2009-12-15 00:35:12 +0000 |
---|---|---|
committer | Mike Stump <mrs@apple.com> | 2009-12-15 00:35:12 +0000 |
commit | 15037caa1542bb810ad54c653aeb80f61df7b00c (patch) | |
tree | 9d077c2126bc2964760c9bdf6a73efa42af18ab0 /lib/CodeGen/CodeGenFunction.h | |
parent | fcc9322479e863640b6aa0c1e4b4644a9e41e1c1 (diff) |
Switch codegen for -fcatch-undefined-bahavior over to __builtin_trap
instead of abort to improve codesize and codegen.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@91374 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenFunction.h')
-rw-r--r-- | lib/CodeGen/CodeGenFunction.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/CodeGen/CodeGenFunction.h b/lib/CodeGen/CodeGenFunction.h index a44e53b4e3..12e636c897 100644 --- a/lib/CodeGen/CodeGenFunction.h +++ b/lib/CodeGen/CodeGenFunction.h @@ -425,7 +425,7 @@ private: unsigned getByRefValueLLVMField(const ValueDecl *VD) const; llvm::BasicBlock *TerminateHandler; - llvm::BasicBlock *AbortBB; + llvm::BasicBlock *TrapBB; int UniqueAggrDestructorCount; public: @@ -1196,9 +1196,9 @@ public: void EmitBranchOnBoolExpr(const Expr *Cond, llvm::BasicBlock *TrueBlock, llvm::BasicBlock *FalseBlock); - /// getAbortBB - Create a basic block that will call abort. We'll generate - /// a branch around the created basic block as necessary. - llvm::BasicBlock* getAbortBB(); + /// getTrapBB - Create a basic block that will call the trap intrinsic. We'll + /// generate a branch around the created basic block as necessary. + llvm::BasicBlock* getTrapBB(); private: void EmitReturnOfRValue(RValue RV, QualType Ty); |