diff options
author | Adrian Prantl <aprantl@apple.com> | 2019-09-23 22:01:49 +0000 |
---|---|---|
committer | Adrian Prantl <aprantl@apple.com> | 2019-09-23 22:01:49 +0000 |
commit | bf9c8ffb54943c6d77398adbedddf05ef9724007 (patch) | |
tree | 501d720e93a0927fb2146be78c5cf467c0e01b68 /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | 144276bfe43b088390ad11ba0c82cab9158e42e6 (diff) | |
download | bcm5719-llvm-bf9c8ffb54943c6d77398adbedddf05ef9724007.tar.gz bcm5719-llvm-bf9c8ffb54943c6d77398adbedddf05ef9724007.zip |
Support for DWARF-5 C++ language tags.
This patch provides support for DW_LANG_C_plus_plus_11,
DW_LANG_C_plus_plus_14 tags in the Clang C++ frontend.
Patch by Sourabh Singh Tomar!
Differential Revision: https://reviews.llvm.org/D67613
llvm-svn: 372663
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
-rw-r--r-- | clang/lib/CodeGen/CodeGenModule.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp index be7dfc97a98..486832bca5f 100644 --- a/clang/lib/CodeGen/CodeGenModule.cpp +++ b/clang/lib/CodeGen/CodeGenModule.cpp @@ -5132,7 +5132,9 @@ void CodeGenModule::EmitObjCIvarInitializations(ObjCImplementationDecl *D) { // EmitLinkageSpec - Emit all declarations in a linkage spec. void CodeGenModule::EmitLinkageSpec(const LinkageSpecDecl *LSD) { if (LSD->getLanguage() != LinkageSpecDecl::lang_c && - LSD->getLanguage() != LinkageSpecDecl::lang_cxx) { + LSD->getLanguage() != LinkageSpecDecl::lang_cxx && + LSD->getLanguage() != LinkageSpecDecl::lang_cxx_11 && + LSD->getLanguage() != LinkageSpecDecl::lang_cxx_14) { ErrorUnsupported(LSD, "linkage spec"); return; } |