diff options
author | Douglas Gregor <dgregor@apple.com> | 2013-03-20 03:59:18 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2013-03-20 03:59:18 +0000 |
commit | 8d93242709e31f073d6d90922e3f544f26defec4 (patch) | |
tree | e98f3b93100f7840e410207f57908500a62ad105 /clang/lib/Basic/Module.cpp | |
parent | 22c7c4131a6b032351e3f3bb02d8ab7a9dd758fd (diff) | |
download | bcm5719-llvm-8d93242709e31f073d6d90922e3f544f26defec4.tar.gz bcm5719-llvm-8d93242709e31f073d6d90922e3f544f26defec4.zip |
Make sure that Module::ConfigMacrosExhaustive gets initialized and deserialized correctly.
This fixes regressions introduced in r177466 that caused several
module tests to fail sporadically.
llvm-svn: 177481
Diffstat (limited to 'clang/lib/Basic/Module.cpp')
-rw-r--r-- | clang/lib/Basic/Module.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/clang/lib/Basic/Module.cpp b/clang/lib/Basic/Module.cpp index 019d04732b1..197c53fb149 100644 --- a/clang/lib/Basic/Module.cpp +++ b/clang/lib/Basic/Module.cpp @@ -28,7 +28,8 @@ Module::Module(StringRef Name, SourceLocation DefinitionLoc, Module *Parent, Umbrella(), ASTFile(0), IsAvailable(true), IsFromModuleFile(false), IsFramework(IsFramework), IsExplicit(IsExplicit), IsSystem(false), InferSubmodules(false), InferExplicitSubmodules(false), - InferExportWildcard(false), NameVisibility(Hidden) + InferExportWildcard(false), ConfigMacrosExhaustive(false), + NameVisibility(Hidden) { if (Parent) { if (!Parent->isAvailable()) @@ -46,7 +47,6 @@ Module::~Module() { I != IEnd; ++I) { delete *I; } - } /// \brief Determine whether a translation unit built using the current @@ -284,12 +284,13 @@ void Module::print(raw_ostream &OS, unsigned Indent) const { OS.indent(Indent + 2); OS << "config_macros "; if (ConfigMacrosExhaustive) - OS << "[exhausive]"; + OS << "[exhaustive]"; for (unsigned I = 0, N = ConfigMacros.size(); I != N; ++I) { if (I) OS << ", "; OS << ConfigMacros[I]; } + OS << "\n"; } for (unsigned I = 0, N = Headers.size(); I != N; ++I) { |