summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2011-09-10 00:22:34 +0000
committerDouglas Gregor <dgregor@apple.com>2011-09-10 00:22:34 +0000
commit87d8124b0e5da9b2727df6490a43d0ce367a637f (patch)
treee68134ddfc94dde65460b458b03fe0bb08e31b13 /clang/lib/CodeGen
parentb908b7af31548babc89d002b4a1971dd7b4a8ad1 (diff)
downloadbcm5719-llvm-87d8124b0e5da9b2727df6490a43d0ce367a637f.tar.gz
bcm5719-llvm-87d8124b0e5da9b2727df6490a43d0ce367a637f.zip
Clean up our handling of Objective-C definitions in AST files. Rather
than having CodeGen check whether a declaration comes from an AST file (which it shouldn't know or care about), make sure that the AST writer and reader pass along "interesting" declarations that CodeGen needs to know about. llvm-svn: 139441
Diffstat (limited to 'clang/lib/CodeGen')
-rw-r--r--clang/lib/CodeGen/CGObjCMac.cpp7
1 files changed, 0 insertions, 7 deletions
diff --git a/clang/lib/CodeGen/CGObjCMac.cpp b/clang/lib/CodeGen/CGObjCMac.cpp
index f0ff9eb4326..fa49f1e09fe 100644
--- a/clang/lib/CodeGen/CGObjCMac.cpp
+++ b/clang/lib/CodeGen/CGObjCMac.cpp
@@ -3549,13 +3549,6 @@ llvm::Function *CGObjCCommonMac::GetMethodDefinition(const ObjCMethodDecl *MD) {
if (I != MethodDefinitions.end())
return I->second;
- if (MD->hasBody() && MD->isFromASTFile()) {
- // MD isn't emitted yet because it comes from PCH.
- CGM.EmitTopLevelDecl(const_cast<ObjCMethodDecl*>(MD));
- assert(MethodDefinitions[MD] && "EmitTopLevelDecl didn't emit the method!");
- return MethodDefinitions[MD];
- }
-
return NULL;
}
OpenPOWER on IntegriCloud