summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend/CompilerInstance.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2011-12-07 00:54:14 +0000
committerDouglas Gregor <dgregor@apple.com>2011-12-07 00:54:14 +0000
commitee78d3e0202945c26faa0071c2fc38704f26b825 (patch)
tree3f13d8ea2a5bb8bc63cc627a619f276daf3edec0 /clang/lib/Frontend/CompilerInstance.cpp
parented8b3e38ec48ffb465c9cea62a8de9af90d71afd (diff)
downloadbcm5719-llvm-ee78d3e0202945c26faa0071c2fc38704f26b825.tar.gz
bcm5719-llvm-ee78d3e0202945c26faa0071c2fc38704f26b825.zip
If we can't write the temporary module map file when compiling a
module, at least have the decency to complain about it. llvm-svn: 146002
Diffstat (limited to 'clang/lib/Frontend/CompilerInstance.cpp')
-rw-r--r--clang/lib/Frontend/CompilerInstance.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/Frontend/CompilerInstance.cpp b/clang/lib/Frontend/CompilerInstance.cpp
index 454d7bd4fce..7b3fe7876be 100644
--- a/clang/lib/Frontend/CompilerInstance.cpp
+++ b/clang/lib/Frontend/CompilerInstance.cpp
@@ -1026,7 +1026,8 @@ static void compileModule(CompilerInstance &ImportingInstance,
TempModuleMapFileName,
/*makeAbsolute=*/true)
!= llvm::errc::success) {
- // FIXME: Give a sensible error message here.
+ ImportingInstance.getDiagnostics().Report(diag::err_module_map_temp_file)
+ << TempModuleMapFileName;
return;
}
// Print the module map to this file.
OpenPOWER on IntegriCloud