From 6bf2ae05c777052e5ec05649710380dea263e7e0 Mon Sep 17 00:00:00 2001 From: Daniel Dunbar Date: Tue, 21 Apr 2009 00:49:20 +0000 Subject: Remove LateBoundIVars() runtime interface, it is unused. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@69641 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/CGExpr.cpp | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'lib/CodeGen/CGExpr.cpp') diff --git a/lib/CodeGen/CGExpr.cpp b/lib/CodeGen/CGExpr.cpp index a073c44256..01bbc84050 100644 --- a/lib/CodeGen/CGExpr.cpp +++ b/lib/CodeGen/CGExpr.cpp @@ -1131,14 +1131,6 @@ LValue CodeGenFunction::EmitObjCMessageExprLValue(const ObjCMessageExpr *E) { llvm::Value *CodeGenFunction::EmitIvarOffset(ObjCInterfaceDecl *Interface, const ObjCIvarDecl *Ivar) { - // Objective-C objects are traditionally C structures with their layout - // defined at compile-time. In some implementations, their layout is not - // defined until run time in order to allow instance variables to be added to - // a class without recompiling all of the subclasses. If this is the case - // then the CGObjCRuntime subclass must return true to LateBoundIvars and - // implement the lookup itself. - if (CGM.getObjCRuntime().LateBoundIVars()) - assert(0 && "late-bound ivars are unsupported"); return CGM.getObjCRuntime().EmitIvarOffset(*this, Interface, Ivar); } @@ -1147,10 +1139,6 @@ LValue CodeGenFunction::EmitLValueForIvar(QualType ObjectTy, const ObjCIvarDecl *Ivar, const FieldDecl *Field, unsigned CVRQualifiers) { - // See comment in EmitIvarOffset. - if (CGM.getObjCRuntime().LateBoundIVars()) - assert(0 && "late-bound ivars are unsupported"); - return CGM.getObjCRuntime().EmitObjCValueForIvar(*this, ObjectTy, BaseValue, Ivar, Field, CVRQualifiers); } -- cgit v1.2.3