diff options
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2012-10-10 02:12:39 +0000 |
---|---|---|
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2012-10-10 02:12:39 +0000 |
commit | 2a857180050fb78b356c17931e311eef7f2daf3e (patch) | |
tree | a9e322efea6b463a670686e1775b2e79cf965961 /include/clang/Basic/Module.h | |
parent | bf43f2fdfbd7c4f8cd1f1403765eca9e5dc6c8ae (diff) |
[modules] Consistently construct a buffer as input to build the module.
This means the main file for modules will always be a virtual one.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@165591 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Basic/Module.h')
-rw-r--r-- | include/clang/Basic/Module.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/clang/Basic/Module.h b/include/clang/Basic/Module.h index a53f87d7b7..faaca22bd0 100644 --- a/include/clang/Basic/Module.h +++ b/include/clang/Basic/Module.h @@ -290,6 +290,10 @@ public: submodule_iterator submodule_end() { return SubModules.end(); } submodule_const_iterator submodule_end() const { return SubModules.end(); } + static StringRef getModuleInputBufferName() { + return "<module-includes>"; + } + /// \brief Print the module map for this module to the given stream. /// void print(llvm::raw_ostream &OS, unsigned Indent = 0) const; |