diff options
author | Daniel Dunbar <daniel@zuster.org> | 2010-06-07 23:23:06 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2010-06-07 23:23:06 +0000 |
commit | 8654638b23a185d9dcb4a5a14e5d51def34bbc37 (patch) | |
tree | db026cf3850d00ebf56189f0053b9af972f9c24b /clang/lib/Frontend/FrontendAction.cpp | |
parent | 9b491e79fcb5ed20be6c3d8804a316efa3c3e9e5 (diff) | |
download | bcm5719-llvm-8654638b23a185d9dcb4a5a14e5d51def34bbc37.tar.gz bcm5719-llvm-8654638b23a185d9dcb4a5a14e5d51def34bbc37.zip |
Frontend: Change FrontendAction::BeginSourceFile to take the input kind instead of an IsAST bool.
llvm-svn: 105578
Diffstat (limited to 'clang/lib/Frontend/FrontendAction.cpp')
-rw-r--r-- | clang/lib/Frontend/FrontendAction.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/Frontend/FrontendAction.cpp b/clang/lib/Frontend/FrontendAction.cpp index 87fc1227b2f..66bec7c4aef 100644 --- a/clang/lib/Frontend/FrontendAction.cpp +++ b/clang/lib/Frontend/FrontendAction.cpp @@ -32,7 +32,7 @@ void FrontendAction::setCurrentFile(llvm::StringRef Value, ASTUnit *AST) { bool FrontendAction::BeginSourceFile(CompilerInstance &CI, llvm::StringRef Filename, - bool IsAST) { + InputKind InputKind) { assert(!Instance && "Already processing a source file!"); assert(!Filename.empty() && "Unexpected empty filename!"); setCurrentFile(Filename); @@ -40,6 +40,7 @@ bool FrontendAction::BeginSourceFile(CompilerInstance &CI, // AST files follow a very different path, since they share objects via the // AST unit. + bool IsAST = InputKind == IK_AST; if (IsAST) { assert(!usesPreprocessorOnly() && "Attempt to pass AST file to preprocessor only action!"); |