summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenFunction.h
diff options
context:
space:
mode:
authorFariborz Jahanian <fjahanian@apple.com>2010-09-17 15:51:28 +0000
committerFariborz Jahanian <fjahanian@apple.com>2010-09-17 15:51:28 +0000
commit5bbd1b0051ecf7ae37552ee52166edeea782154d (patch)
tree038965b2ad5b357577429c95677ee7b4b2c6cbe0 /clang/lib/CodeGen/CodeGenFunction.h
parent35a7a0ee2ee725756d4a8f658ba79bf3e6a1d472 (diff)
downloadbcm5719-llvm-5bbd1b0051ecf7ae37552ee52166edeea782154d.tar.gz
bcm5719-llvm-5bbd1b0051ecf7ae37552ee52166edeea782154d.zip
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). llvm-svn: 114182
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.h')
-rw-r--r--clang/lib/CodeGen/CodeGenFunction.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CodeGenFunction.h b/clang/lib/CodeGen/CodeGenFunction.h
index a77044324a0..4a5beb4baa1 100644
--- a/clang/lib/CodeGen/CodeGenFunction.h
+++ b/clang/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;
OpenPOWER on IntegriCloud