diff options
author | Douglas Gregor <dgregor@apple.com> | 2012-01-20 16:28:04 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2012-01-20 16:28:04 +0000 |
commit | 32fbe31246fa498c4170411dfda3ae85b7c39c4e (patch) | |
tree | 22b7aa0b9b223a4ae57b1fc8ae656357eaba9ee2 /clang/lib/Frontend/FrontendActions.cpp | |
parent | 469214426ac525c12ec83d6a3b2e86f0ded1e57f (diff) | |
download | bcm5719-llvm-32fbe31246fa498c4170411dfda3ae85b7c39c4e.tar.gz bcm5719-llvm-32fbe31246fa498c4170411dfda3ae85b7c39c4e.zip |
Extract the (InputKind, std::string) pair used to describe inputs to
the front end into its own class, FrontendInputFile, to make it easier
to introduce new per-input data. No functionality change.
llvm-svn: 148546
Diffstat (limited to 'clang/lib/Frontend/FrontendActions.cpp')
-rw-r--r-- | clang/lib/Frontend/FrontendActions.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/clang/lib/Frontend/FrontendActions.cpp b/clang/lib/Frontend/FrontendActions.cpp index 2261b307128..272474cea7e 100644 --- a/clang/lib/Frontend/FrontendActions.cpp +++ b/clang/lib/Frontend/FrontendActions.cpp @@ -255,7 +255,8 @@ bool GenerateModuleAction::BeginSourceFileAction(CompilerInstance &CI, if (UmbrellaHeader && HeaderContents.empty()) { // Simple case: we have an umbrella header and there are no additional // includes, we can just parse the umbrella header directly. - setCurrentFile(UmbrellaHeader->getName(), getCurrentFileKind()); + setCurrentInput(FrontendInputFile(UmbrellaHeader->getName(), + getCurrentFileKind())); return true; } @@ -311,9 +312,8 @@ bool GenerateModuleAction::BeginSourceFileAction(CompilerInstance &CI, ModTime); llvm::MemoryBuffer *HeaderContentsBuf = llvm::MemoryBuffer::getMemBufferCopy(HeaderContents); - CI.getSourceManager().overrideFileContents(HeaderFile, HeaderContentsBuf); - - setCurrentFile(HeaderName, getCurrentFileKind()); + CI.getSourceManager().overrideFileContents(HeaderFile, HeaderContentsBuf); + setCurrentInput(FrontendInputFile(HeaderName, getCurrentFileKind())); return true; } |