From 4bd5596d0827ce8d021c8b67fcd9dca041d654ba Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sun, 30 Mar 2008 23:03:07 +0000 Subject: Add initial support for objc codegen for methods, ivars, and the etoile runtime, patch by David Chisnall! llvm-svn: 48969 --- clang/lib/CodeGen/ModuleBuilder.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'clang/lib/CodeGen/ModuleBuilder.cpp') diff --git a/clang/lib/CodeGen/ModuleBuilder.cpp b/clang/lib/CodeGen/ModuleBuilder.cpp index 06467488a5e..5710d8bf980 100644 --- a/clang/lib/CodeGen/ModuleBuilder.cpp +++ b/clang/lib/CodeGen/ModuleBuilder.cpp @@ -65,6 +65,10 @@ namespace { Builder->EmitFunction(FD); } else if (FileVarDecl *FVD = dyn_cast(D)) { Builder->EmitGlobalVarDeclarator(FVD); + } else if (isa(D) || isa(D)) { + // Forward declaration. Only used for type checking. + } else if (ObjCMethodDecl *OMD = dyn_cast(D)){ + Builder->EmitObjCMethod(OMD); } else if (LinkageSpecDecl *LSD = dyn_cast(D)) { if (LSD->getLanguage() == LinkageSpecDecl::lang_cxx) Builder->WarnUnsupported(LSD, "linkage spec"); -- cgit v1.2.3