projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove the 'N' modifier from llvm-ar.
[oota-llvm.git]
/
tools
/
bugpoint
/
ToolRunner.cpp
diff --git
a/tools/bugpoint/ToolRunner.cpp
b/tools/bugpoint/ToolRunner.cpp
index a9a4a9d27f1e3e01785c1e2068586085e11202ae..107d0dbaeb17fb198021851c5626687df8f812ef 100644
(file)
--- a/
tools/bugpoint/ToolRunner.cpp
+++ b/
tools/bugpoint/ToolRunner.cpp
@@
-141,8
+141,8
@@
static std::string ProcessFailure(StringRef ProgPath, const char** Args,
// Rerun the compiler, capturing any error messages to print them.
SmallString<128> ErrorFilename;
int ErrorFD;
// Rerun the compiler, capturing any error messages to print them.
SmallString<128> ErrorFilename;
int ErrorFD;
- error_code EC = sys::fs::
unique_file("bugpoint.program_error_messages",
-
ErrorFD, ErrorFilename);
+ error_code EC = sys::fs::
createTemporaryFile(
+
"bugpoint.program_error_messages", "",
ErrorFD, ErrorFilename);
if (EC) {
errs() << "Error making unique filename: " << EC.message() << "\n";
exit(1);
if (EC) {
errs() << "Error making unique filename: " << EC.message() << "\n";
exit(1);
@@
-478,7
+478,7
@@
GCC::FileType LLC::OutputCode(const std::string &Bitcode,
SmallString<128> UniqueFile;
error_code EC =
SmallString<128> UniqueFile;
error_code EC =
- sys::fs::
unique_f
ile(Bitcode + "-%%%%%%%" + Suffix, UniqueFile);
+ sys::fs::
createUniqueF
ile(Bitcode + "-%%%%%%%" + Suffix, UniqueFile);
if (EC) {
errs() << "Error making unique filename: " << EC.message() << "\n";
exit(1);
if (EC) {
errs() << "Error making unique filename: " << EC.message() << "\n";
exit(1);
@@
-715,7
+715,7
@@
int GCC::ExecuteProgram(const std::string &ProgramFile,
SmallString<128> OutputBinary;
error_code EC =
SmallString<128> OutputBinary;
error_code EC =
- sys::fs::
unique_file(ProgramFile
+ "-%%%%%%%.gcc.exe", OutputBinary);
+ sys::fs::
createUniqueFile(ProgramFile
+ "-%%%%%%%.gcc.exe", OutputBinary);
if (EC) {
errs() << "Error making unique filename: " << EC.message() << "\n";
exit(1);
if (EC) {
errs() << "Error making unique filename: " << EC.message() << "\n";
exit(1);
@@
-824,8
+824,8
@@
int GCC::MakeSharedObject(const std::string &InputFile, FileType fileType,
const std::vector<std::string> &ArgsForGCC,
std::string &Error) {
SmallString<128> UniqueFilename;
const std::vector<std::string> &ArgsForGCC,
std::string &Error) {
SmallString<128> UniqueFilename;
- error_code EC = sys::fs::
unique_file(InputFile + "-%%%%%%%" + LTDL_SHLIB_EXT,
-
UniqueFilename);
+ error_code EC = sys::fs::
createUniqueFile(
+
InputFile + "-%%%%%%%" + LTDL_SHLIB_EXT,
UniqueFilename);
if (EC) {
errs() << "Error making unique filename: " << EC.message() << "\n";
exit(1);
if (EC) {
errs() << "Error making unique filename: " << EC.message() << "\n";
exit(1);