diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2015-05-02 02:08:26 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2015-05-02 02:08:26 +0000 |
commit | 10434f307cda8270e65687bb35ed65ca70924463 (patch) | |
tree | 09435b44fcdac5fa38be254826bdf4dd32f35a91 /clang/lib/Lex/PPDirectives.cpp | |
parent | 32dbd69ce2f89932654000e45f038c01f5754664 (diff) | |
download | bcm5719-llvm-10434f307cda8270e65687bb35ed65ca70924463.tar.gz bcm5719-llvm-10434f307cda8270e65687bb35ed65ca70924463.zip |
[modules] Remove dead code from Module for tracking macro import locations.
llvm-svn: 236376
Diffstat (limited to 'clang/lib/Lex/PPDirectives.cpp')
-rw-r--r-- | clang/lib/Lex/PPDirectives.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/clang/lib/Lex/PPDirectives.cpp b/clang/lib/Lex/PPDirectives.cpp index 7de6c14ef36..e1a67f9e9d1 100644 --- a/clang/lib/Lex/PPDirectives.cpp +++ b/clang/lib/Lex/PPDirectives.cpp @@ -1680,12 +1680,11 @@ void Preprocessor::HandleIncludeDirective(SourceLocation HashLoc, ReplaceRange, ("@import " + PathString + ";").str()); } - // Load the module. Only make macros visible. We'll make the declarations + // Load the module to import its macros. We'll make the declarations // visible when the parser gets here. - Module::NameVisibilityKind Visibility = Module::MacrosVisible; - ModuleLoadResult Imported - = TheModuleLoader.loadModule(IncludeTok.getLocation(), Path, Visibility, - /*IsIncludeDirective=*/true); + ModuleLoadResult Imported = TheModuleLoader.loadModule( + IncludeTok.getLocation(), Path, Module::Hidden, + /*IsIncludeDirective=*/true); if (Imported) makeModuleVisible(Imported, IncludeTok.getLocation()); assert((Imported == nullptr || Imported == SuggestedModule.getModule()) && |