Re-add the autoconf rule for the docs/doxygen.cfg file.
[oota-llvm.git] / lib / CompilerDriver / Main.cpp
index 88cfdb21230513e4e7c4b5b5f4369fd736a817ef..7120027f7ce0e84668115eda8862835cdf2ed0d0 100644 (file)
@@ -16,6 +16,7 @@
 #include "llvm/CompilerDriver/CompilationGraph.h"
 #include "llvm/CompilerDriver/Error.h"
 
+#include "llvm/Support/FileSystem.h"
 #include "llvm/Support/raw_ostream.h"
 #include "llvm/Support/Path.h"
 
@@ -50,7 +51,8 @@ namespace {
       return 0;
     }
 
-    if (!tempDir.exists()) {
+    bool Exists;
+    if (llvm::sys::fs::exists(tempDir.str(), Exists) || !Exists) {
       std::string ErrMsg;
       if (tempDir.createDirectoryOnDisk(true, &ErrMsg)) {
         PrintError(ErrMsg);