diff options
author | Fariborz Jahanian <fjahanian@apple.com> | 2010-09-17 15:51:28 +0000 |
---|---|---|
committer | Fariborz Jahanian <fjahanian@apple.com> | 2010-09-17 15:51:28 +0000 |
commit | af9b96828f9126d993c3e155b8453be62013b735 (patch) | |
tree | 06349dc38d2396ecb23955fb25e710f6df9addc2 /lib/CodeGen/CodeGenFunction.h | |
parent | 9fe871a80da9ba96e4731649bd197e3b7e820184 (diff) |
Patch to add IRgen support for Gnu's conditional operator
extension when missing LHS. This patch covers scalar
conditionals only. Others are wip.
(pr7726, radar 8353567).
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@114182 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenFunction.h')
-rw-r--r-- | lib/CodeGen/CodeGenFunction.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/CodeGen/CodeGenFunction.h b/lib/CodeGen/CodeGenFunction.h index a77044324a..4a5beb4baa 100644 --- a/lib/CodeGen/CodeGenFunction.h +++ b/lib/CodeGen/CodeGenFunction.h @@ -511,6 +511,11 @@ public: /// \brief A mapping from NRVO variables to the flags used to indicate /// when the NRVO has been applied to this variable. llvm::DenseMap<const VarDecl *, llvm::Value *> NRVOFlags; + + /// \brief A mapping from 'Save' expression in a conditional expression + /// to the IR for this expression. Used to implement IR gen. for Gnu + /// extension's missing LHS expression in a conditional operator expression. + llvm::DenseMap<const Expr *, llvm::Value *> ConditionalSaveExprs; EHScopeStack EHStack; |