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 | 19512d911188a3910bd9f5a6df5679f74b3a7d6c (patch) | |
| tree | fdf19684c7990eaa563af0ad8ff5be6ed91ca034 /lib/Basic/Module.cpp | |
| parent | c64c62a82a57abde28b5a0279f39a65d1d8bc20e (diff) | |
| download | clang-19512d911188a3910bd9f5a6df5679f74b3a7d6c.tar.gz clang-19512d911188a3910bd9f5a6df5679f74b3a7d6c.tar.bz2 clang-19512d911188a3910bd9f5a6df5679f74b3a7d6c.tar.xz | |
Module [extern_c] attribute: inherit to submodules, don't write 'extern "C"'
blocks when building in C mode, and serialize and deserialize the attribute.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@203317 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Basic/Module.cpp')
| -rw-r--r-- | lib/Basic/Module.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Basic/Module.cpp b/lib/Basic/Module.cpp index 24c480a766..237c78981f 100644 --- a/lib/Basic/Module.cpp +++ b/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); |
