aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/CGObjC.cpp
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2008-08-29 08:11:39 +0000
committerDaniel Dunbar <daniel@zuster.org>2008-08-29 08:11:39 +0000
commit85c59edda02df48fae8dc85049743319bc6e7e89 (patch)
treeb27f7f79c96e1ccc0793e561e4ea6cfc4dc9218d /lib/CodeGen/CGObjC.cpp
parentd70900be3c0b56e961d5890cca2baf2fc76f0274 (diff)
Add special "property reference" CodeGen::LValue type for emitting
Objective-C property references. - This handles property references "more correctly" but setters still don't work. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@55534 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGObjC.cpp')
-rw-r--r--lib/CodeGen/CGObjC.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/CodeGen/CGObjC.cpp b/lib/CodeGen/CGObjC.cpp
index cec75dea9b..624b24aa75 100644
--- a/lib/CodeGen/CGObjC.cpp
+++ b/lib/CodeGen/CGObjC.cpp
@@ -14,6 +14,7 @@
#include "CGObjCRuntime.h"
#include "CodeGenFunction.h"
#include "CodeGenModule.h"
+#include "clang/AST/ASTContext.h"
#include "clang/AST/DeclObjC.h"
using namespace clang;
@@ -238,4 +239,9 @@ RValue CodeGenFunction::EmitObjCPropertyGet(const ObjCPropertyRefExpr *E) {
return EmitObjCMessageExpr(&GetExpr);
}
+void CodeGenFunction::EmitObjCPropertySet(const ObjCPropertyRefExpr *E,
+ RValue Src) {
+ ErrorUnsupported(E, "Objective-C property setter call");
+}
+
CGObjCRuntime::~CGObjCRuntime() {}