summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2004-11-14 22:30:54 +0000
committerReid Spencer <rspencer@reidspencer.com>2004-11-14 22:30:54 +0000
commit227b6d00dd1faee07c921c7e2256e0fca737d2e5 (patch)
tree4d0fa0dbfeb65cc710648c35ebba257e71625780 /tools
parent63ab669120ed863ced2463542e9e4a0963e86fcb (diff)
downloadllvm-227b6d00dd1faee07c921c7e2256e0fca737d2e5.tar.gz
llvm-227b6d00dd1faee07c921c7e2256e0fca737d2e5.tar.bz2
llvm-227b6d00dd1faee07c921c7e2256e0fca737d2e5.tar.xz
Fix usage of changed function prototype
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17798 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools')
-rw-r--r--tools/gccas/gccas.cpp2
-rw-r--r--tools/llc/llc.cpp4
-rw-r--r--tools/llvm-as/llvm-as.cpp7
-rw-r--r--tools/llvm-dis/llvm-dis.cpp2
-rw-r--r--tools/llvm-ld/llvm-ld.cpp10
-rw-r--r--tools/llvm-link/llvm-link.cpp2
-rw-r--r--tools/opt/opt.cpp2
7 files changed, 15 insertions, 14 deletions
diff --git a/tools/gccas/gccas.cpp b/tools/gccas/gccas.cpp
index 3fa0cfa7dd..dd8b8e0698 100644
--- a/tools/gccas/gccas.cpp
+++ b/tools/gccas/gccas.cpp
@@ -159,7 +159,7 @@ int main(int argc, char **argv) {
// Make sure that the Out file gets unlinked from the disk if we get a
// signal
- sys::RemoveFileOnSignal(OutputFilename);
+ sys::RemoveFileOnSignal(sys::Path(OutputFilename));
}
diff --git a/tools/llc/llc.cpp b/tools/llc/llc.cpp
index 4e1e0cce7b..ba624b2127 100644
--- a/tools/llc/llc.cpp
+++ b/tools/llc/llc.cpp
@@ -115,7 +115,7 @@ int main(int argc, char **argv) {
// Make sure that the Out file gets unlinked from the disk if we get a
// SIGINT
- sys::RemoveFileOnSignal(OutputFilename);
+ sys::RemoveFileOnSignal(sys::Path(OutputFilename));
} else {
Out = &std::cout;
}
@@ -148,7 +148,7 @@ int main(int argc, char **argv) {
// Make sure that the Out file gets unlinked from the disk if we get a
// SIGINT
- sys::RemoveFileOnSignal(OutputFilename);
+ sys::RemoveFileOnSignal(sys::Path(OutputFilename));
}
}
diff --git a/tools/llvm-as/llvm-as.cpp b/tools/llvm-as/llvm-as.cpp
index acfe1756b5..7a777a4bab 100644
--- a/tools/llvm-as/llvm-as.cpp
+++ b/tools/llvm-as/llvm-as.cpp
@@ -40,8 +40,9 @@ Force("f", cl::desc("Overwrite output files"));
static cl::opt<bool>
DumpAsm("d", cl::desc("Print assembly as parsed"), cl::Hidden);
-static cl::opt<bool> NoCompress("disable-compression", cl::init(false),
- cl::desc("Don't ompress the generated bytecode"));
+static cl::opt<bool>
+NoCompress("disable-compression", cl::init(false),
+ cl::desc("Don't ompress the generated bytecode"));
static cl::opt<bool>
DisableVerify("disable-verify", cl::Hidden,
@@ -113,7 +114,7 @@ int main(int argc, char **argv) {
std::ios_base::trunc | std::ios_base::binary);
// Make sure that the Out file gets unlinked from the disk if we get a
// SIGINT
- sys::RemoveFileOnSignal(OutputFilename);
+ sys::RemoveFileOnSignal(sys::Path(OutputFilename));
}
}
diff --git a/tools/llvm-dis/llvm-dis.cpp b/tools/llvm-dis/llvm-dis.cpp
index 37d5c84f75..78d10ee531 100644
--- a/tools/llvm-dis/llvm-dis.cpp
+++ b/tools/llvm-dis/llvm-dis.cpp
@@ -95,7 +95,7 @@ int main(int argc, char **argv) {
// Make sure that the Out file gets unlinked from the disk if we get a
// SIGINT
- sys::RemoveFileOnSignal(OutputFilename);
+ sys::RemoveFileOnSignal(sys::Path(OutputFilename));
}
}
}
diff --git a/tools/llvm-ld/llvm-ld.cpp b/tools/llvm-ld/llvm-ld.cpp
index 877b15c1f9..5e2ac67768 100644
--- a/tools/llvm-ld/llvm-ld.cpp
+++ b/tools/llvm-ld/llvm-ld.cpp
@@ -223,7 +223,7 @@ int main(int argc, char **argv, char **envp) {
// Ensure that the bytecode file gets removed from the disk if we get a
// terminating signal.
- sys::RemoveFileOnSignal(RealBytecodeOutput);
+ sys::RemoveFileOnSignal(sys::Path(RealBytecodeOutput));
// Generate the bytecode file.
if (GenerateBytecode(Composite.get(), Strip, !NoInternalize, &Out)) {
@@ -246,8 +246,8 @@ int main(int argc, char **argv, char **envp) {
std::string AssemblyFile = OutputFilename + ".s";
// Mark the output files for removal if we get an interrupt.
- sys::RemoveFileOnSignal(AssemblyFile);
- sys::RemoveFileOnSignal(OutputFilename);
+ sys::RemoveFileOnSignal(sys::Path(AssemblyFile));
+ sys::RemoveFileOnSignal(sys::Path(OutputFilename));
// Determine the locations of the llc and gcc programs.
std::string llc = FindExecutable("llc", argv[0]);
@@ -271,8 +271,8 @@ int main(int argc, char **argv, char **envp) {
std::string CFile = OutputFilename + ".cbe.c";
// Mark the output files for removal if we get an interrupt.
- sys::RemoveFileOnSignal(CFile);
- sys::RemoveFileOnSignal(OutputFilename);
+ sys::RemoveFileOnSignal(sys::Path(CFile));
+ sys::RemoveFileOnSignal(sys::Path(OutputFilename));
// Determine the locations of the llc and gcc programs.
std::string llc = FindExecutable("llc", argv[0]);
diff --git a/tools/llvm-link/llvm-link.cpp b/tools/llvm-link/llvm-link.cpp
index 7de3ba118a..1605cd2a0f 100644
--- a/tools/llvm-link/llvm-link.cpp
+++ b/tools/llvm-link/llvm-link.cpp
@@ -128,7 +128,7 @@ int main(int argc, char **argv) {
// Make sure that the Out file gets unlinked from the disk if we get a
// SIGINT
- sys::RemoveFileOnSignal(OutputFilename);
+ sys::RemoveFileOnSignal(sys::Path(OutputFilename));
}
if (verifyModule(*Composite.get())) {
diff --git a/tools/opt/opt.cpp b/tools/opt/opt.cpp
index 12c354736c..dcc3666ca1 100644
--- a/tools/opt/opt.cpp
+++ b/tools/opt/opt.cpp
@@ -111,7 +111,7 @@ int main(int argc, char **argv) {
// Make sure that the Output file gets unlinked from the disk if we get a
// SIGINT
- sys::RemoveFileOnSignal(OutputFilename);
+ sys::RemoveFileOnSignal(sys::Path(OutputFilename));
}
// If the output is set to be emitted to standard out, and standard out is a