diff options
| author | Richard Smith <richard-llvm@metafoo.co.uk> | 2016-08-18 21:59:42 +0000 |
|---|---|---|
| committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2016-08-18 21:59:42 +0000 |
| commit | 49cc1ccb00df06cc915e0ec5014d04082506f752 (patch) | |
| tree | c6324f49ad7a51cd6f59da8d64ab2a9c2d291abc /clang/lib/Sema | |
| parent | 4071b1bac37e806848a2e0c52c9747fc843491f5 (diff) | |
| download | bcm5719-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.cpp | 5 |
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); |

