[cfe-commits] r82431 - /cfe/trunk/lib/Frontend/ASTUnit.cpp

Daniel Dunbar daniel at zuster.org
Sun Sep 20 20:03:47 PDT 2009


Author: ddunbar
Date: Sun Sep 20 22:03:47 2009
New Revision: 82431

URL: http://llvm.org/viewvc/llvm-project?rev=82431&view=rev
Log:
Change ASTUnit to only initialize the predefines buffer to the suggested predefines.
 - It isn't really clear what to do with the preprocessor here, but this is more sensible.

Modified:
    cfe/trunk/lib/Frontend/ASTUnit.cpp

Modified: cfe/trunk/lib/Frontend/ASTUnit.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Frontend/ASTUnit.cpp?rev=82431&r1=82430&r2=82431&view=diff

==============================================================================
--- cfe/trunk/lib/Frontend/ASTUnit.cpp (original)
+++ cfe/trunk/lib/Frontend/ASTUnit.cpp Sun Sep 20 22:03:47 2009
@@ -126,7 +126,7 @@
                                  AST->getSourceManager(), HeaderInfo));
   Preprocessor &PP = *AST->PP.get();
 
-  PP.setPredefines(Predefines);
+  PP.setPredefines(Reader->getSuggestedPredefines());
   PP.setCounterValue(Counter);
   Reader->setPreprocessor(PP);
 





More information about the cfe-commits mailing list