mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-23 17:24:48 +00:00
Remove 'using std::error_code' from tools.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@210876 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -28,7 +28,6 @@
|
||||
#include <system_error>
|
||||
using namespace llvm;
|
||||
using namespace llvm::object;
|
||||
using std::error_code;
|
||||
|
||||
static cl::list<std::string>
|
||||
InputFileList(cl::Positional, cl::ZeroOrMore,
|
||||
@ -158,8 +157,8 @@ static int printLineInfoForInput() {
|
||||
// Load the input memory buffer.
|
||||
std::unique_ptr<MemoryBuffer> InputBuffer;
|
||||
std::unique_ptr<ObjectImage> LoadedObject;
|
||||
if (error_code ec = MemoryBuffer::getFileOrSTDIN(InputFileList[i],
|
||||
InputBuffer))
|
||||
if (std::error_code ec =
|
||||
MemoryBuffer::getFileOrSTDIN(InputFileList[i], InputBuffer))
|
||||
return Error("unable to read input: '" + ec.message() + "'");
|
||||
|
||||
// Load the object file
|
||||
@ -219,8 +218,8 @@ static int executeInput() {
|
||||
// Load the input memory buffer.
|
||||
std::unique_ptr<MemoryBuffer> InputBuffer;
|
||||
std::unique_ptr<ObjectImage> LoadedObject;
|
||||
if (error_code ec = MemoryBuffer::getFileOrSTDIN(InputFileList[i],
|
||||
InputBuffer))
|
||||
if (std::error_code ec =
|
||||
MemoryBuffer::getFileOrSTDIN(InputFileList[i], InputBuffer))
|
||||
return Error("unable to read input: '" + ec.message() + "'");
|
||||
|
||||
// Load the object file
|
||||
|
Reference in New Issue
Block a user