diff options
| author | Daniel Dunbar <daniel@zuster.org> | 2009-04-21 00:49:20 +0000 |
|---|---|---|
| committer | Daniel Dunbar <daniel@zuster.org> | 2009-04-21 00:49:20 +0000 |
| commit | 6bf2ae05c777052e5ec05649710380dea263e7e0 (patch) | |
| tree | 49a140b53481f244901136fa0263125fc9fd8ec9 /lib/CodeGen/CGExpr.cpp | |
| parent | 9e6c20bae697c908b7d368c0f79f5510d1006a65 (diff) | |
| download | clang-6bf2ae05c777052e5ec05649710380dea263e7e0.tar.gz clang-6bf2ae05c777052e5ec05649710380dea263e7e0.tar.bz2 clang-6bf2ae05c777052e5ec05649710380dea263e7e0.tar.xz | |
Remove LateBoundIVars() runtime interface, it is unused.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@69641 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGExpr.cpp')
| -rw-r--r-- | lib/CodeGen/CGExpr.cpp | 12 |
1 files changed, 0 insertions, 12 deletions
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); } |
