summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGExprScalar.cpp
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2008-08-13 00:59:25 +0000
committerDaniel Dunbar <daniel@zuster.org>2008-08-13 00:59:25 +0000
commit89da6ad1db120f53437de8800f8cd6de532a8003 (patch)
treec4b056d205b1a46f61ddd9ec370ecf08ca92fda3 /clang/lib/CodeGen/CGExprScalar.cpp
parent40f83ac6497f61f24baf49afb66d67d5181e9dfe (diff)
downloadbcm5719-llvm-89da6ad1db120f53437de8800f8cd6de532a8003.tar.gz
bcm5719-llvm-89da6ad1db120f53437de8800f8cd6de532a8003.zip
Change ObjCRuntime GenerateProtocol[Ref] methods to take
ObjCProtocolDecl directly. Implement CodeGen support for forward protocol decls (no-ops are so nice to implement). Also moved CGObjCRuntime.h out of CodeGenModule.h llvm-svn: 54709
Diffstat (limited to 'clang/lib/CodeGen/CGExprScalar.cpp')
-rw-r--r--clang/lib/CodeGen/CGExprScalar.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGExprScalar.cpp b/clang/lib/CodeGen/CGExprScalar.cpp
index 301f6935489..ff7a20aea71 100644
--- a/clang/lib/CodeGen/CGExprScalar.cpp
+++ b/clang/lib/CodeGen/CGExprScalar.cpp
@@ -13,6 +13,7 @@
#include "CodeGenFunction.h"
#include "CodeGenModule.h"
+#include "CGObjCRuntime.h"
#include "clang/AST/ASTContext.h"
#include "clang/AST/DeclObjC.h"
#include "clang/AST/StmtVisitor.h"
@@ -509,7 +510,7 @@ Value *ScalarExprEmitter::VisitObjCSelectorExpr(ObjCSelectorExpr *E) {
Value *ScalarExprEmitter::VisitObjCProtocolExpr(ObjCProtocolExpr *E) {
// FIXME: This should pass the Decl not the name.
- return Runtime->GenerateProtocolRef(Builder, E->getProtocol()->getName());
+ return Runtime->GenerateProtocolRef(Builder, E->getProtocol());
}
Value *ScalarExprEmitter::VisitArraySubscriptExpr(ArraySubscriptExpr *E) {
OpenPOWER on IntegriCloud