diff options
| author | Douglas Gregor <dgregor@apple.com> | 2008-11-04 14:56:14 +0000 |
|---|---|---|
| committer | Douglas Gregor <dgregor@apple.com> | 2008-11-04 14:56:14 +0000 |
| commit | cd9b46e5442a3ef17f83f75177d8545cb5b3e2b9 (patch) | |
| tree | c4982037cbe80fc24de02eab44941ae4cf7cd701 /lib/CodeGen/CGExpr.cpp | |
| parent | 796da18402f286b897782a298ae3b20c459c102e (diff) | |
| download | clang-cd9b46e5442a3ef17f83f75177d8545cb5b3e2b9.tar.gz clang-cd9b46e5442a3ef17f83f75177d8545cb5b3e2b9.tar.bz2 clang-cd9b46e5442a3ef17f83f75177d8545cb5b3e2b9.tar.xz | |
Add a new expression class, ObjCSuperExpr, to handle the Objective-C 'super'. Remove ObjCThis from PredefinedExpr
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@58698 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGExpr.cpp')
| -rw-r--r-- | lib/CodeGen/CGExpr.cpp | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/lib/CodeGen/CGExpr.cpp b/lib/CodeGen/CGExpr.cpp index fa70f47da9..3d8d192a2d 100644 --- a/lib/CodeGen/CGExpr.cpp +++ b/lib/CodeGen/CGExpr.cpp @@ -130,7 +130,9 @@ LValue CodeGenFunction::EmitLValue(const Expr *E) { return EmitObjCIvarRefLValue(cast<ObjCIvarRefExpr>(E)); case Expr::ObjCPropertyRefExprClass: return EmitObjCPropertyRefLValue(cast<ObjCPropertyRefExpr>(E)); - + case Expr::ObjCSuperExprClass: + return EmitObjCSuperExpr(cast<ObjCSuperExpr>(E)); + case Expr::UnaryOperatorClass: return EmitUnaryOpLValue(cast<UnaryOperator>(E)); case Expr::ArraySubscriptExprClass: @@ -571,8 +573,6 @@ LValue CodeGenFunction::EmitPredefinedLValue(const PredefinedExpr *E) { case PredefinedExpr::Function: case PredefinedExpr::PrettyFunction: return EmitPredefinedFunctionName(E->getIdentType()); - case PredefinedExpr::ObjCSuper: - return EmitUnsupportedLValue(E, "use of super"); } } @@ -875,6 +875,11 @@ CodeGenFunction::EmitObjCPropertyRefLValue(const ObjCPropertyRefExpr *E) { return LValue::MakePropertyRef(E, E->getType().getCVRQualifiers()); } +LValue +CodeGenFunction::EmitObjCSuperExpr(const ObjCSuperExpr *E) { + return EmitUnsupportedLValue(E, "use of super"); +} + RValue CodeGenFunction::EmitCallExpr(llvm::Value *Callee, QualType FnType, CallExpr::const_arg_iterator ArgBeg, CallExpr::const_arg_iterator ArgEnd) { |
