aboutsummaryrefslogtreecommitdiff
path: root/CodeGen/CodeGenFunction.h
diff options
context:
space:
mode:
authorEli Friedman <eli.friedman@gmail.com>2008-02-09 08:50:58 +0000
committerEli Friedman <eli.friedman@gmail.com>2008-02-09 08:50:58 +0000
commit472778eb4fce241721c563280886e98389bc7219 (patch)
treeb33b88e8322f4dc1ddb5d91b3e848cf5c6b8b142 /CodeGen/CodeGenFunction.h
parentefe7f36f4d87b6e64b87128a81018350b2f21987 (diff)
Expose the logic for field address codegen; it is needed for aggregate
initializers, and I don't want to duplicate the bitfield-handling code. (I'll send a patch for aggregate initializers to the mailing list sometime soon.) git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@46904 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'CodeGen/CodeGenFunction.h')
-rw-r--r--CodeGen/CodeGenFunction.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/CodeGen/CodeGenFunction.h b/CodeGen/CodeGenFunction.h
index c741071d00..e885752933 100644
--- a/CodeGen/CodeGenFunction.h
+++ b/CodeGen/CodeGenFunction.h
@@ -71,6 +71,7 @@ namespace clang {
class BlockVarDecl;
class EnumConstantDecl;
class ParmVarDecl;
+ class FieldDecl;
namespace CodeGen {
class CodeGenModule;
class CodeGenTypes;
@@ -415,6 +416,9 @@ public:
LValue EmitArraySubscriptExpr(const ArraySubscriptExpr *E);
LValue EmitOCUVectorElementExpr(const OCUVectorElementExpr *E);
LValue EmitMemberExpr(const MemberExpr *E);
+
+ LValue EmitLValueForField(llvm::Value* Base, FieldDecl* Field,
+ bool isUnion);
//===--------------------------------------------------------------------===//
// Scalar Expression Emission