From 9bca298f6d9dadb1f304ad63becfe28a0eda1b0b Mon Sep 17 00:00:00 2001 From: Richard Smith Date: Sat, 8 Mar 2014 00:03:56 +0000 Subject: Module [extern_c] attribute: inherit to submodules, don't write 'extern "C"' blocks when building in C mode, and serialize and deserialize the attribute. llvm-svn: 203317 --- clang/lib/Basic/Module.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'clang/lib/Basic/Module.cpp') diff --git a/clang/lib/Basic/Module.cpp b/clang/lib/Basic/Module.cpp index 24c480a7667..237c78981f2 100644 --- a/clang/lib/Basic/Module.cpp +++ b/clang/lib/Basic/Module.cpp @@ -37,6 +37,8 @@ Module::Module(StringRef Name, SourceLocation DefinitionLoc, Module *Parent, IsAvailable = false; if (Parent->IsSystem) IsSystem = true; + if (Parent->IsExternC) + IsExternC = true; Parent->SubModuleIndex[Name] = Parent->SubModules.size(); Parent->SubModules.push_back(this); -- cgit v1.2.3