[modules] Partial revert of r235669: don't create ModuleMacros for imported local...
authorRichard Smith <richard-llvm@metafoo.co.uk>
Fri, 24 Apr 2015 00:41:09 +0000 (00:41 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Fri, 24 Apr 2015 00:41:09 +0000 (00:41 +0000)
The surrounding infrastructure isn't quite ready for this yet.

llvm-svn: 235677

clang/lib/Lex/PPLexerChange.cpp

index 6cffbc3..b53c40e 100644 (file)
@@ -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();