[cfe-commits] r77800 - /cfe/trunk/lib/CodeGen/CodeGenModule.cpp
Eli Friedman
eli.friedman at gmail.com
Sat Aug 1 13:48:04 PDT 2009
Author: efriedma
Date: Sat Aug 1 15:48:04 2009
New Revision: 77800
URL: http://llvm.org/viewvc/llvm-project?rev=77800&view=rev
Log:
Don't error on C++ linkage; if we don't support that, there are
serious issues :)
Modified:
cfe/trunk/lib/CodeGen/CodeGenModule.cpp
Modified: cfe/trunk/lib/CodeGen/CodeGenModule.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CodeGenModule.cpp?rev=77800&r1=77799&r2=77800&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CodeGenModule.cpp (original)
+++ cfe/trunk/lib/CodeGen/CodeGenModule.cpp Sat Aug 1 15:48:04 2009
@@ -1493,7 +1493,8 @@
// EmitLinkageSpec - Emit all declarations in a linkage spec.
void CodeGenModule::EmitLinkageSpec(const LinkageSpecDecl *LSD) {
- if (LSD->getLanguage() != LinkageSpecDecl::lang_c) {
+ if (LSD->getLanguage() != LinkageSpecDecl::lang_c &&
+ LSD->getLanguage() != LinkageSpecDecl::lang_cxx) {
ErrorUnsupported(LSD, "linkage spec");
return;
}
More information about the cfe-commits
mailing list