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
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user