diff options
| author | Chris Lattner <sabre@nondot.org> | 2008-01-12 07:05:38 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2008-01-12 07:05:38 +0000 |
| commit | 38376f159513e5041d04e7cc8b5c62d59e8fa9d0 (patch) | |
| tree | 838d9e92f54ae5f9cdf75f9fbd896ab57c25d32f /clang/CodeGen/ModuleBuilder.cpp | |
| parent | 22ad7abdfe6bfbe807cb797b0a446a3a15097afe (diff) | |
| download | bcm5719-llvm-38376f159513e5041d04e7cc8b5c62d59e8fa9d0.tar.gz bcm5719-llvm-38376f159513e5041d04e7cc8b5c62d59e8fa9d0.zip | |
Add first pieces of support for parsing and representing
extern "C" in C++ mode. Patch by Mike Stump!
llvm-svn: 45904
Diffstat (limited to 'clang/CodeGen/ModuleBuilder.cpp')
| -rw-r--r-- | clang/CodeGen/ModuleBuilder.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/clang/CodeGen/ModuleBuilder.cpp b/clang/CodeGen/ModuleBuilder.cpp index 49881c36d94..fff5b3fbfff 100644 --- a/clang/CodeGen/ModuleBuilder.cpp +++ b/clang/CodeGen/ModuleBuilder.cpp @@ -13,6 +13,7 @@ #include "clang/CodeGen/ModuleBuilder.h" #include "CodeGenModule.h" +#include "clang/AST/Decl.h" using namespace clang; @@ -34,6 +35,16 @@ void clang::CodeGen::CodeGenFunction(CodeGenModule *B, FunctionDecl *D) { B->EmitFunction(D); } +/// CodeGenLinkageSpec - Emit the specified linkage space to LLVM. +void clang::CodeGen::CodeGenLinkageSpec(CodeGenModule *Builder, + LinkageSpecDecl *LS) { + if (LS->getLanguage() == LinkageSpecDecl::lang_cxx) + Builder->WarnUnsupported(LS, "linkage spec"); + + // FIXME: implement C++ linkage, C linkage works mostly by C + // language reuse already. +} + /// CodeGenGlobalVar - Emit the specified global variable to LLVM. void clang::CodeGen::CodeGenGlobalVar(CodeGenModule *Builder, FileVarDecl *D) { Builder->EmitGlobalVarDeclarator(D); |

