aboutsummaryrefslogtreecommitdiff
path: root/CodeGen/CodeGenFunction.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-08-21 04:25:47 +0000
committerChris Lattner <sabre@nondot.org>2007-08-21 04:25:47 +0000
commit9c03356918aee078e925c35f9854dfdf2492dfc3 (patch)
treef5b774497aa3ba4f2f6856e51895f1c23613bd63 /CodeGen/CodeGenFunction.h
parente12b4301820bbae6b67a88fa98617dc571331555 (diff)
switch aggregate expr codegen to use a visitor to localize most of the nasty
details in its own file. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@41213 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'CodeGen/CodeGenFunction.h')
-rw-r--r--CodeGen/CodeGenFunction.h20
1 files changed, 2 insertions, 18 deletions
diff --git a/CodeGen/CodeGenFunction.h b/CodeGen/CodeGenFunction.h
index f233108dbd..eaf2b1ded2 100644
--- a/CodeGen/CodeGenFunction.h
+++ b/CodeGen/CodeGenFunction.h
@@ -181,7 +181,9 @@ public:
class CodeGenFunction {
CodeGenModule &CGM; // Per-module state.
TargetInfo &Target;
+public:
llvm::LLVMBuilder Builder;
+private:
const FunctionDecl *CurFuncDecl;
llvm::Function *CurFn;
@@ -410,24 +412,6 @@ public:
/// aggregate type. The result is computed into DestPtr. Note that if
/// DestPtr is null, the value of the aggregate expression is not needed.
void EmitAggExpr(const Expr *E, llvm::Value *DestPtr, bool VolatileDest);
-
- /// EmitAggLoadOfLValue - Given an expression with aggregate type that
- /// represents a value lvalue, this method emits the address of the lvalue,
- /// then loads the result into DestPtr.
- void EmitAggLoadOfLValue(const Expr *E, llvm::Value *DestPtr, bool VolDest);
-
-
-
- // Binary Operators.
- void EmitAggBinaryOperator(const BinaryOperator *E,
- llvm::Value *DestPtr, bool VolatileDest);
-
-
- void EmitAggBinaryAssign(const BinaryOperator *E, llvm::Value *DestPtr,
- bool VolatileDest);
-
- void EmitAggConditionalOperator(const ConditionalOperator *E,
- llvm::Value *DestPtr, bool VolatileDest);
};
} // end namespace CodeGen
} // end namespace clang