mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-29 10:25:12 +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:
@@ -31,7 +31,6 @@
|
||||
#include <utility>
|
||||
|
||||
namespace llvm {
|
||||
using std::error_code;
|
||||
|
||||
/// Represents a set of regular expressions. Regular expressions which are
|
||||
/// "literal" (i.e. no regex metacharacters) are stored in Strings, while all
|
||||
@@ -56,7 +55,7 @@ SpecialCaseList *SpecialCaseList::create(
|
||||
if (Path.empty())
|
||||
return new SpecialCaseList();
|
||||
std::unique_ptr<MemoryBuffer> File;
|
||||
if (error_code EC = MemoryBuffer::getFile(Path, File)) {
|
||||
if (std::error_code EC = MemoryBuffer::getFile(Path, File)) {
|
||||
Error = (Twine("Can't open file '") + Path + "': " + EC.message()).str();
|
||||
return nullptr;
|
||||
}
|
||||
|
Reference in New Issue
Block a user