From 87e2cfcec7231daaa3f367dc32df74b411251e46 Mon Sep 17 00:00:00 2001 From: Douglas Gregor Date: Fri, 30 Nov 2012 19:28:05 +0000 Subject: Actually keep track of the source locations at which particular module files are loaded. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@169027 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/clang/Serialization/ModuleManager.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'include/clang/Serialization/ModuleManager.h') diff --git a/include/clang/Serialization/ModuleManager.h b/include/clang/Serialization/ModuleManager.h index 6dcaa210d2..1e23ca2d68 100644 --- a/include/clang/Serialization/ModuleManager.h +++ b/include/clang/Serialization/ModuleManager.h @@ -92,6 +92,8 @@ public: /// /// \param Type The kind of module being loaded. /// + /// \param ImportLoc The location at which the module is imported. + /// /// \param ImportedBy The module that is importing this module, or NULL if /// this module is imported directly by the user. /// @@ -103,8 +105,9 @@ public: /// \return A pointer to the module that corresponds to this file name, /// and a boolean indicating whether the module was newly added. std::pair - addModule(StringRef FileName, ModuleKind Type, ModuleFile *ImportedBy, - unsigned Generation, std::string &ErrorStr); + addModule(StringRef FileName, ModuleKind Type, SourceLocation ImportLoc, + ModuleFile *ImportedBy, unsigned Generation, + std::string &ErrorStr); /// \brief Remove the given set of modules. void removeModules(ModuleIterator first, ModuleIterator last); -- cgit v1.2.3-70-g09d2