summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend/FrontendAction.cpp
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2012-11-09 19:40:33 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2012-11-09 19:40:33 +0000
commit1b3240b0aafa9bcef3918dfbaf60e412f474d276 (patch)
tree218777968b41529b5acbe0351e2dcf82466eac3f /clang/lib/Frontend/FrontendAction.cpp
parent13d556296333359bcdd4ec17d6e514ab06f55d61 (diff)
downloadbcm5719-llvm-1b3240b0aafa9bcef3918dfbaf60e412f474d276.tar.gz
bcm5719-llvm-1b3240b0aafa9bcef3918dfbaf60e412f474d276.zip
Make CompilerInstance::InitializeSourceManager accept a FrontendInputFile,
no functionality change. llvm-svn: 167626
Diffstat (limited to 'clang/lib/Frontend/FrontendAction.cpp')
-rw-r--r--clang/lib/Frontend/FrontendAction.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/clang/lib/Frontend/FrontendAction.cpp b/clang/lib/Frontend/FrontendAction.cpp
index 2974334d82e..8d153a39f09 100644
--- a/clang/lib/Frontend/FrontendAction.cpp
+++ b/clang/lib/Frontend/FrontendAction.cpp
@@ -369,10 +369,7 @@ bool FrontendAction::Execute() {
// Initialize the main file entry. This needs to be delayed until after PCH
// has loaded.
if (!isCurrentFileAST()) {
- if (!CI.InitializeSourceManager(getCurrentFile(),
- getCurrentInput().IsSystem
- ? SrcMgr::C_System
- : SrcMgr::C_User))
+ if (!CI.InitializeSourceManager(getCurrentInput()))
return false;
}
OpenPOWER on IntegriCloud