diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2015-04-24 00:41:09 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2015-04-24 00:41:09 +0000 |
commit | a9f636ee94cb593977f2c1ea2779c8fd440122e6 (patch) | |
tree | 562afec0dd5711e29f7df0e485e068ad27728c47 /lib/Lex/PPLexerChange.cpp | |
parent | cd318b3e08af534198e4c652dc5e56c723b4202f (diff) |
[modules] Partial revert of r235669: don't create ModuleMacros for imported local macros.
The surrounding infrastructure isn't quite ready for this yet.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@235677 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Lex/PPLexerChange.cpp')
-rw-r--r-- | lib/Lex/PPLexerChange.cpp | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/lib/Lex/PPLexerChange.cpp b/lib/Lex/PPLexerChange.cpp index 6cffbc3985..b53c40ec5c 100644 --- a/lib/Lex/PPLexerChange.cpp +++ b/lib/Lex/PPLexerChange.cpp @@ -665,12 +665,6 @@ void Preprocessor::LeaveSubmodule() { // Restore the old macro state. Macro.second = State; - - // If our submodule defined a macro, import it. - // FIXME: Do this lazily. - if (MM) - appendMacroDirective(II, - AllocateImportedMacroDirective(MM, Info.ImportLoc)); } BuildingSubmoduleStack.pop_back(); |