diff options
author | Chris Lattner <sabre@nondot.org> | 2008-03-30 23:03:07 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-03-30 23:03:07 +0000 |
commit | 4bd5596d0827ce8d021c8b67fcd9dca041d654ba (patch) | |
tree | 15155f84ef230d5d246a17bd72b8c653ff41ba27 /clang/lib/CodeGen/ModuleBuilder.cpp | |
parent | dd0ace574bcad687e1644d773974593d5df18434 (diff) | |
download | bcm5719-llvm-4bd5596d0827ce8d021c8b67fcd9dca041d654ba.tar.gz bcm5719-llvm-4bd5596d0827ce8d021c8b67fcd9dca041d654ba.zip |
Add initial support for objc codegen for methods, ivars, and the
etoile runtime, patch by David Chisnall!
llvm-svn: 48969
Diffstat (limited to 'clang/lib/CodeGen/ModuleBuilder.cpp')
-rw-r--r-- | clang/lib/CodeGen/ModuleBuilder.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
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<FileVarDecl>(D)) { Builder->EmitGlobalVarDeclarator(FVD); + } else if (isa<ObjCClassDecl>(D) || isa<ObjCCategoryDecl>(D)) { + // Forward declaration. Only used for type checking. + } else if (ObjCMethodDecl *OMD = dyn_cast<ObjCMethodDecl>(D)){ + Builder->EmitObjCMethod(OMD); } else if (LinkageSpecDecl *LSD = dyn_cast<LinkageSpecDecl>(D)) { if (LSD->getLanguage() == LinkageSpecDecl::lang_cxx) Builder->WarnUnsupported(LSD, "linkage spec"); |