From: Devang Patel Date: Tue, 9 Oct 2007 19:49:58 +0000 (+0000) Subject: Use LLVMFoldingBuilder X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=50c9034ea90a01e302cb46a5fc2fdeb1a6d03ebc;p=clang Use LLVMFoldingBuilder git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@42807 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/CodeGen/CGExprAgg.cpp b/CodeGen/CGExprAgg.cpp index de9e2b5f6f..743c2486d3 100644 --- a/CodeGen/CGExprAgg.cpp +++ b/CodeGen/CGExprAgg.cpp @@ -27,7 +27,7 @@ using namespace CodeGen; namespace { class VISIBILITY_HIDDEN AggExprEmitter : public StmtVisitor { CodeGenFunction &CGF; - llvm::LLVMBuilder &Builder; + llvm::LLVMFoldingBuilder &Builder; llvm::Value *DestPtr; bool VolatileDest; public: diff --git a/CodeGen/CGExprComplex.cpp b/CodeGen/CGExprComplex.cpp index 8dfe244a4f..f27519c8f5 100644 --- a/CodeGen/CGExprComplex.cpp +++ b/CodeGen/CGExprComplex.cpp @@ -31,7 +31,7 @@ namespace { class VISIBILITY_HIDDEN ComplexExprEmitter : public StmtVisitor { CodeGenFunction &CGF; - llvm::LLVMBuilder &Builder; + llvm::LLVMFoldingBuilder &Builder; public: ComplexExprEmitter(CodeGenFunction &cgf) : CGF(cgf), Builder(CGF.Builder) { } diff --git a/CodeGen/CGExprScalar.cpp b/CodeGen/CGExprScalar.cpp index 155cf3b313..cd5c078b5c 100644 --- a/CodeGen/CGExprScalar.cpp +++ b/CodeGen/CGExprScalar.cpp @@ -36,7 +36,7 @@ namespace { class VISIBILITY_HIDDEN ScalarExprEmitter : public StmtVisitor { CodeGenFunction &CGF; - llvm::LLVMBuilder &Builder; + llvm::LLVMFoldingBuilder &Builder; public: ScalarExprEmitter(CodeGenFunction &cgf) : CGF(cgf), Builder(CGF.Builder) { diff --git a/CodeGen/CodeGenFunction.h b/CodeGen/CodeGenFunction.h index c62541bea5..b48280cd31 100644 --- a/CodeGen/CodeGenFunction.h +++ b/CodeGen/CodeGenFunction.h @@ -209,7 +209,7 @@ public: TargetInfo &Target; typedef std::pair ComplexPairTy; - llvm::LLVMBuilder Builder; + llvm::LLVMFoldingBuilder Builder; const FunctionDecl *CurFuncDecl; llvm::Function *CurFn;