summaryrefslogtreecommitdiff
path: root/tools/bugpoint/ExecutionDriver.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2014-06-13 03:07:50 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2014-06-13 03:07:50 +0000
commit1ad45020ec8518a5c9bea7ec1007798a456bff56 (patch)
tree07430093f7f8e4eaf7cfa61b960406627e961c54 /tools/bugpoint/ExecutionDriver.cpp
parent7532b4038f2ce16cc285ed6b3254053f30088faa (diff)
downloadllvm-1ad45020ec8518a5c9bea7ec1007798a456bff56.tar.gz
llvm-1ad45020ec8518a5c9bea7ec1007798a456bff56.tar.bz2
llvm-1ad45020ec8518a5c9bea7ec1007798a456bff56.tar.xz
Remove 'using std::error_code' from tools.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@210876 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/bugpoint/ExecutionDriver.cpp')
-rw-r--r--tools/bugpoint/ExecutionDriver.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/tools/bugpoint/ExecutionDriver.cpp b/tools/bugpoint/ExecutionDriver.cpp
index b41a4b0334..25813b34e6 100644
--- a/tools/bugpoint/ExecutionDriver.cpp
+++ b/tools/bugpoint/ExecutionDriver.cpp
@@ -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";