Introduce a -cc1 option "-emit-module", that creates a binary module

from the given source. -emit-module behaves similarly to -emit-pch,
except that Sema is somewhat more strict about the contents of
-emit-module. In the future, there are likely to be more interesting
differences.

llvm-svn: 138595
This commit is contained in:
Douglas Gregor
2011-08-25 22:30:56 +00:00
parent 371376010f
commit 69f74f80db
25 changed files with 99 additions and 67 deletions

View File

@@ -93,8 +93,8 @@ bool ASTMergeAction::usesPreprocessorOnly() const {
return AdaptedAction->usesPreprocessorOnly();
}
bool ASTMergeAction::usesCompleteTranslationUnit() {
return AdaptedAction->usesCompleteTranslationUnit();
TranslationUnitKind ASTMergeAction::getTranslationUnitKind() {
return AdaptedAction->getTranslationUnitKind();
}
bool ASTMergeAction::hasPCHSupport() const {