summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2016-08-18 21:59:42 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2016-08-18 21:59:42 +0000
commit49cc1ccb00df06cc915e0ec5014d04082506f752 (patch)
treec6324f49ad7a51cd6f59da8d64ab2a9c2d291abc /clang/lib/Sema
parent4071b1bac37e806848a2e0c52c9747fc843491f5 (diff)
downloadbcm5719-llvm-49cc1ccb00df06cc915e0ec5014d04082506f752.tar.gz
bcm5719-llvm-49cc1ccb00df06cc915e0ec5014d04082506f752.zip
C++ Modules TS: Add parsing support for module import declaration.
llvm-svn: 279163
Diffstat (limited to 'clang/lib/Sema')
-rw-r--r--clang/lib/Sema/SemaDecl.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/clang/lib/Sema/SemaDecl.cpp b/clang/lib/Sema/SemaDecl.cpp
index 42f8dea6f6b..5dab15a8d66 100644
--- a/clang/lib/Sema/SemaDecl.cpp
+++ b/clang/lib/Sema/SemaDecl.cpp
@@ -15178,7 +15178,7 @@ void Sema::diagnoseMisplacedModuleImport(Module *M, SourceLocation ImportLoc) {
return checkModuleImportContext(*this, M, ImportLoc, CurContext);
}
-DeclResult Sema::ActOnModuleImport(SourceLocation AtLoc,
+DeclResult Sema::ActOnModuleImport(SourceLocation StartLoc,
SourceLocation ImportLoc,
ModuleIdPath Path) {
Module *Mod =
@@ -15213,8 +15213,7 @@ DeclResult Sema::ActOnModuleImport(SourceLocation AtLoc,
}
TranslationUnitDecl *TU = getASTContext().getTranslationUnitDecl();
- ImportDecl *Import = ImportDecl::Create(Context, TU,
- AtLoc.isValid()? AtLoc : ImportLoc,
+ ImportDecl *Import = ImportDecl::Create(Context, TU, StartLoc,
Mod, IdentifierLocs);
if (!ModuleScopes.empty())
Context.addModuleInitializer(ModuleScopes.back().Module, Import);
OpenPOWER on IntegriCloud