diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2014-06-13 17:20:48 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2014-06-13 17:20:48 +0000 |
commit | 2a826e40fa51fcae4adb564d789cafe95776e0bb (patch) | |
tree | fc0dea973c66e8777a6354c1e01199057d38b023 /llvm/unittests/Transforms/DebugIR/DebugIR.cpp | |
parent | 372bc70c639a45e69a519a2e47f0b9a06e23914a (diff) | |
download | bcm5719-llvm-2a826e40fa51fcae4adb564d789cafe95776e0bb.tar.gz bcm5719-llvm-2a826e40fa51fcae4adb564d789cafe95776e0bb.zip |
Finishing touch for the std::error_code transition.
While std::error_code itself seems to work OK in all platforms, there
are few annoying differences with regards to the std::errc enumeration.
This patch adds a simple llvm enumeration, which will hopefully avoid build
breakages in other platforms and surprises as we get more uses of
std::error_code.
llvm-svn: 210920
Diffstat (limited to 'llvm/unittests/Transforms/DebugIR/DebugIR.cpp')
-rw-r--r-- | llvm/unittests/Transforms/DebugIR/DebugIR.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/unittests/Transforms/DebugIR/DebugIR.cpp b/llvm/unittests/Transforms/DebugIR/DebugIR.cpp index c4ebc5cfa4a..41df1472168 100644 --- a/llvm/unittests/Transforms/DebugIR/DebugIR.cpp +++ b/llvm/unittests/Transforms/DebugIR/DebugIR.cpp @@ -18,6 +18,7 @@ #include "llvm/IR/DIBuilder.h" #include "llvm/IR/DebugInfo.h" #include "llvm/IR/Module.h" +#include "llvm/Support/Errc.h" #include "llvm/Support/FileSystem.h" #include "llvm/Support/Host.h" #include "llvm/Support/Path.h" @@ -58,7 +59,7 @@ bool removeIfExists(StringRef Path) { // This is an approximation, on error we don't know in general if the file // existed or not. std::error_code EC = sys::fs::remove(Path, false); - return EC != std::errc::no_such_file_or_directory; + return EC != llvm::errc::no_such_file_or_directory; } char * current_dir() { |