mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-18 11:24:01 +00:00
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@210920 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -11,6 +11,7 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "llvm/Support/Errc.h"
|
||||
#include "llvm/Support/FileOutputBuffer.h"
|
||||
#include "llvm/ADT/SmallVector.h"
|
||||
#include "llvm/Support/raw_ostream.h"
|
||||
@ -51,7 +52,7 @@ FileOutputBuffer::create(StringRef FilePath, size_t Size,
|
||||
if (EC)
|
||||
return EC;
|
||||
else
|
||||
return std::make_error_code(std::errc::operation_not_permitted);
|
||||
return make_error_code(errc::operation_not_permitted);
|
||||
}
|
||||
|
||||
// Delete target file.
|
||||
|
Reference in New Issue
Block a user