diff options
author | Douglas Gregor <dgregor@apple.com> | 2011-12-02 01:47:07 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2011-12-02 01:47:07 +0000 |
commit | 90db26000aefe9335370013eec64c85232d80227 (patch) | |
tree | a3ced66d78e3b4c8f2da6c52357ad05a4a5a46f6 /lib/Lex/Preprocessor.cpp | |
parent | 320fa4b6051ff032aaa50d924ca39e3d529dcf5f (diff) |
Implementing parsing and resolution of module export declarations
within module maps, which will (eventually) be used to re-export a
module from another module. There are still some pieces missing,
however.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@145665 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Lex/Preprocessor.cpp')
-rw-r--r-- | lib/Lex/Preprocessor.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/Lex/Preprocessor.cpp b/lib/Lex/Preprocessor.cpp index 180e1e2c25..6cf34e226a 100644 --- a/lib/Lex/Preprocessor.cpp +++ b/lib/Lex/Preprocessor.cpp @@ -369,7 +369,12 @@ void Preprocessor::CreateString(const char *Buf, unsigned Len, Token &Tok, Tok.setLiteralData(DestPtr); } - +Module *Preprocessor::getCurrentModule() { + if (getLangOptions().CurrentModule.empty()) + return 0; + + return getHeaderSearchInfo().getModule(getLangOptions().CurrentModule); +} //===----------------------------------------------------------------------===// // Preprocessor Initialization Methods |