diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2014-03-08 00:03:56 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2014-03-08 00:03:56 +0000 |
commit | 9bca298f6d9dadb1f304ad63becfe28a0eda1b0b (patch) | |
tree | f7090390710aff9cf1cca5469935e4d82cd69add /clang/lib/Basic/Module.cpp | |
parent | 7f928f14f4235e0cb593857aca4fcedea157c4de (diff) | |
download | bcm5719-llvm-9bca298f6d9dadb1f304ad63becfe28a0eda1b0b.tar.gz bcm5719-llvm-9bca298f6d9dadb1f304ad63becfe28a0eda1b0b.zip |
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
Diffstat (limited to 'clang/lib/Basic/Module.cpp')
-rw-r--r-- | clang/lib/Basic/Module.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
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); |