mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-26 12:20:42 +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:
@@ -22,7 +22,6 @@
|
||||
#include <fstream>
|
||||
|
||||
using namespace llvm;
|
||||
using std::error_code;
|
||||
|
||||
namespace {
|
||||
// OutputType - Allow the user to specify the way code should be run, to test
|
||||
@@ -268,7 +267,7 @@ void BugDriver::compileProgram(Module *M, std::string *Error) const {
|
||||
// Emit the program to a bitcode file...
|
||||
SmallString<128> BitcodeFile;
|
||||
int BitcodeFD;
|
||||
error_code EC = sys::fs::createUniqueFile(
|
||||
std::error_code EC = sys::fs::createUniqueFile(
|
||||
OutputPrefix + "-test-program-%%%%%%%.bc", BitcodeFD, BitcodeFile);
|
||||
if (EC) {
|
||||
errs() << ToolName << ": Error making unique filename: " << EC.message()
|
||||
@@ -306,7 +305,7 @@ std::string BugDriver::executeProgram(const Module *Program,
|
||||
// Emit the program to a bitcode file...
|
||||
SmallString<128> UniqueFilename;
|
||||
int UniqueFD;
|
||||
error_code EC = sys::fs::createUniqueFile(
|
||||
std::error_code EC = sys::fs::createUniqueFile(
|
||||
OutputPrefix + "-test-program-%%%%%%%.bc", UniqueFD, UniqueFilename);
|
||||
if (EC) {
|
||||
errs() << ToolName << ": Error making unique filename: "
|
||||
@@ -332,7 +331,7 @@ std::string BugDriver::executeProgram(const Module *Program,
|
||||
|
||||
// Check to see if this is a valid output filename...
|
||||
SmallString<128> UniqueFile;
|
||||
error_code EC = sys::fs::createUniqueFile(OutputFile, UniqueFile);
|
||||
std::error_code EC = sys::fs::createUniqueFile(OutputFile, UniqueFile);
|
||||
if (EC) {
|
||||
errs() << ToolName << ": Error making unique filename: "
|
||||
<< EC.message() << "\n";
|
||||
|
||||
Reference in New Issue
Block a user