[cfe-commits] r90263 - /cfe/trunk/lib/Frontend/ASTUnit.cpp
Daniel Dunbar
daniel at zuster.org
Tue Dec 1 13:57:33 PST 2009
Author: ddunbar
Date: Tue Dec 1 15:57:33 2009
New Revision: 90263
URL: http://llvm.org/viewvc/llvm-project?rev=90263&view=rev
Log:
ASTUnit: Make sure to preserve the TargetInfo for later use.
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=90263&r1=90262&r2=90263&view=diff
==============================================================================
--- cfe/trunk/lib/Frontend/ASTUnit.cpp (original)
+++ cfe/trunk/lib/Frontend/ASTUnit.cpp Tue Dec 1 15:57:33 2009
@@ -240,12 +240,13 @@
Act.Execute();
- // Steal the created context and preprocessor, and take back the source and
- // file managers.
+ // Steal the created target, context, and preprocessor, and take back the
+ // source and file managers.
AST->Ctx.reset(Clang.takeASTContext());
AST->PP.reset(Clang.takePreprocessor());
Clang.takeSourceManager();
Clang.takeFileManager();
+ AST->Target.reset(Clang.takeTarget());
Act.EndSourceFile();
More information about the cfe-commits
mailing list