mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-26 05:25:47 +00:00
Remove 'using std::errro_code' from lib.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@210871 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -22,7 +22,6 @@
|
||||
#include <cstring>
|
||||
#include <system_error>
|
||||
using namespace llvm;
|
||||
using std::error_code;
|
||||
|
||||
static bool isSignedChar(char C) {
|
||||
return (C == '+' || C == '-');
|
||||
@@ -178,13 +177,13 @@ int llvm::DiffFilesWithTolerance(StringRef NameA,
|
||||
// Now its safe to mmap the files into memory because both files
|
||||
// have a non-zero size.
|
||||
std::unique_ptr<MemoryBuffer> F1;
|
||||
if (error_code ec = MemoryBuffer::getFile(NameA, F1)) {
|
||||
if (std::error_code ec = MemoryBuffer::getFile(NameA, F1)) {
|
||||
if (Error)
|
||||
*Error = ec.message();
|
||||
return 2;
|
||||
}
|
||||
std::unique_ptr<MemoryBuffer> F2;
|
||||
if (error_code ec = MemoryBuffer::getFile(NameB, F2)) {
|
||||
if (std::error_code ec = MemoryBuffer::getFile(NameB, F2)) {
|
||||
if (Error)
|
||||
*Error = ec.message();
|
||||
return 2;
|
||||
|
Reference in New Issue
Block a user