diff options
| author | Chris Lattner <sabre@nondot.org> | 2009-04-26 00:44:05 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2009-04-26 00:44:05 +0000 |
| commit | 7ec71da2153ae7246cda37eded261969139b0832 (patch) | |
| tree | d2cd8f20a0b14148b11bec3d36c3cc77e16816ee /clang/lib/AST | |
| parent | 06ccf7a4639e7bcfb332c53ea0717f57ce3b4928 (diff) | |
| download | bcm5719-llvm-7ec71da2153ae7246cda37eded261969139b0832.tar.gz bcm5719-llvm-7ec71da2153ae7246cda37eded261969139b0832.zip | |
implement PCH support for the rest of ExprObjC.h, including
the missing bits of ObjCMessageExpr.
llvm-svn: 70100
Diffstat (limited to 'clang/lib/AST')
| -rw-r--r-- | clang/lib/AST/Expr.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/clang/lib/AST/Expr.cpp b/clang/lib/AST/Expr.cpp index f9ca323a474..053117d35be 100644 --- a/clang/lib/AST/Expr.cpp +++ b/clang/lib/AST/Expr.cpp @@ -1525,6 +1525,16 @@ ObjCMessageExpr::ClassInfo ObjCMessageExpr::getClassInfo() const { } } +void ObjCMessageExpr::setClassInfo(const ObjCMessageExpr::ClassInfo &CI) { + if (CI.first == 0 && CI.second == 0) + SubExprs[RECEIVER] = (Expr*)((uintptr_t)0 | IsInstMeth); + else if (CI.first == 0) + SubExprs[RECEIVER] = (Expr*)((uintptr_t)CI.second | IsClsMethDeclUnknown); + else + SubExprs[RECEIVER] = (Expr*)((uintptr_t)CI.first | IsClsMethDeclKnown); +} + + bool ChooseExpr::isConditionTrue(ASTContext &C) const { return getCond()->getIntegerConstantExprValue(C) != 0; } |

