summaryrefslogtreecommitdiffstats
path: root/clang/lib
diff options
context:
space:
mode:
authorJohn McCall <rjmccall@apple.com>2011-02-17 19:02:56 +0000
committerJohn McCall <rjmccall@apple.com>2011-02-17 19:02:56 +0000
commite6be5e1c0dd68d8a25145ba9d179eca8943a7e10 (patch)
tree7e2e7eafb89c17923823e8b0e04a90bea6d36ea2 /clang/lib
parent428d75ffd9c009f57e32204f54de337f6dc938ca (diff)
downloadbcm5719-llvm-e6be5e1c0dd68d8a25145ba9d179eca8943a7e10.tar.gz
bcm5719-llvm-e6be5e1c0dd68d8a25145ba9d179eca8943a7e10.zip
Remove the "conditional save" hashtables from IR generation.
llvm-svn: 125761
Diffstat (limited to 'clang/lib')
-rw-r--r--clang/lib/CodeGen/CGExpr.cpp5
-rw-r--r--clang/lib/CodeGen/CGExprComplex.cpp7
-rw-r--r--clang/lib/CodeGen/CGExprScalar.cpp5
-rw-r--r--clang/lib/CodeGen/CodeGenFunction.h7
4 files changed, 1 insertions, 23 deletions
diff --git a/clang/lib/CodeGen/CGExpr.cpp b/clang/lib/CodeGen/CGExpr.cpp
index 27316526b16..1b7e7a007ed 100644
--- a/clang/lib/CodeGen/CGExpr.cpp
+++ b/clang/lib/CodeGen/CGExpr.cpp
@@ -510,11 +510,6 @@ LValue CodeGenFunction::EmitCheckedLValue(const Expr *E) {
/// length type, this is not possible.
///
LValue CodeGenFunction::EmitLValue(const Expr *E) {
- llvm::DenseMap<const Expr *, LValue>::iterator I =
- ConditionalSaveLValueExprs.find(E);
- if (I != ConditionalSaveLValueExprs.end())
- return I->second;
-
switch (E->getStmtClass()) {
default: return EmitUnsupportedLValue(E, "l-value expression");
diff --git a/clang/lib/CodeGen/CGExprComplex.cpp b/clang/lib/CodeGen/CGExprComplex.cpp
index 8b4ead8b111..7b0292b8f22 100644
--- a/clang/lib/CodeGen/CGExprComplex.cpp
+++ b/clang/lib/CodeGen/CGExprComplex.cpp
@@ -98,12 +98,7 @@ public:
//===--------------------------------------------------------------------===//
ComplexPairTy Visit(Expr *E) {
- llvm::DenseMap<const Expr *, ComplexPairTy>::iterator I =
- CGF.ConditionalSaveComplexExprs.find(E);
- if (I != CGF.ConditionalSaveComplexExprs.end())
- return I->second;
-
- return StmtVisitor<ComplexExprEmitter, ComplexPairTy>::Visit(E);
+ return StmtVisitor<ComplexExprEmitter, ComplexPairTy>::Visit(E);
}
ComplexPairTy VisitStmt(Stmt *S) {
diff --git a/clang/lib/CodeGen/CGExprScalar.cpp b/clang/lib/CodeGen/CGExprScalar.cpp
index 34e247d7c3f..3e1debd820b 100644
--- a/clang/lib/CodeGen/CGExprScalar.cpp
+++ b/clang/lib/CodeGen/CGExprScalar.cpp
@@ -150,11 +150,6 @@ public:
//===--------------------------------------------------------------------===//
Value *Visit(Expr *E) {
- llvm::DenseMap<const Expr *, llvm::Value *>::iterator I =
- CGF.ConditionalSaveExprs.find(E);
- if (I != CGF.ConditionalSaveExprs.end())
- return I->second;
-
return StmtVisitor<ScalarExprEmitter, Value*>::Visit(E);
}
diff --git a/clang/lib/CodeGen/CodeGenFunction.h b/clang/lib/CodeGen/CodeGenFunction.h
index d35a400f7de..120eab484d2 100644
--- a/clang/lib/CodeGen/CodeGenFunction.h
+++ b/clang/lib/CodeGen/CodeGenFunction.h
@@ -592,13 +592,6 @@ public:
/// 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;
- llvm::DenseMap<const Expr *, ComplexPairTy> ConditionalSaveComplexExprs;
- llvm::DenseMap<const Expr *, LValue> ConditionalSaveLValueExprs;
-
EHScopeStack EHStack;
/// i32s containing the indexes of the cleanup destinations.
OpenPOWER on IntegriCloud