From e6be5e1c0dd68d8a25145ba9d179eca8943a7e10 Mon Sep 17 00:00:00 2001 From: John McCall Date: Thu, 17 Feb 2011 19:02:56 +0000 Subject: Remove the "conditional save" hashtables from IR generation. llvm-svn: 125761 --- clang/lib/CodeGen/CGExpr.cpp | 5 ----- clang/lib/CodeGen/CGExprComplex.cpp | 7 +------ clang/lib/CodeGen/CGExprScalar.cpp | 5 ----- clang/lib/CodeGen/CodeGenFunction.h | 7 ------- 4 files changed, 1 insertion(+), 23 deletions(-) (limited to 'clang/lib/CodeGen') 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::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::iterator I = - CGF.ConditionalSaveComplexExprs.find(E); - if (I != CGF.ConditionalSaveComplexExprs.end()) - return I->second; - - return StmtVisitor::Visit(E); + return StmtVisitor::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::iterator I = - CGF.ConditionalSaveExprs.find(E); - if (I != CGF.ConditionalSaveExprs.end()) - return I->second; - return StmtVisitor::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 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 ConditionalSaveExprs; - llvm::DenseMap ConditionalSaveComplexExprs; - llvm::DenseMap ConditionalSaveLValueExprs; - EHScopeStack EHStack; /// i32s containing the indexes of the cleanup destinations. -- cgit v1.2.3