summaryrefslogtreecommitdiffstats
path: root/clang/lib/Lex/PPDirectives.cpp
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2015-05-02 02:08:26 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2015-05-02 02:08:26 +0000
commit10434f307cda8270e65687bb35ed65ca70924463 (patch)
tree09435b44fcdac5fa38be254826bdf4dd32f35a91 /clang/lib/Lex/PPDirectives.cpp
parent32dbd69ce2f89932654000e45f038c01f5754664 (diff)
downloadbcm5719-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.cpp9
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()) &&
OpenPOWER on IntegriCloud