summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2004-08-29 19:28:55 +0000
committerReid Spencer <rspencer@reidspencer.com>2004-08-29 19:28:55 +0000
commit9de7b334ec6f80a15f093f11b339f5741c964b34 (patch)
tree8da8fb445c4a2ced80e4c31d7c663a4e127a788c
parent615edcccda2ed18f91d6991e7dea2ddfb3476bd1 (diff)
downloadllvm-9de7b334ec6f80a15f093f11b339f5741c964b34.tar.gz
llvm-9de7b334ec6f80a15f093f11b339f5741c964b34.tar.bz2
llvm-9de7b334ec6f80a15f093f11b339f5741c964b34.tar.xz
The functions in Signal.h are now in the llvm::sys namespace - adjust
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16091 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--tools/analyze/analyze.cpp2
-rw-r--r--tools/bugpoint/bugpoint.cpp2
-rw-r--r--tools/extract/extract.cpp2
-rw-r--r--tools/gccas/gccas.cpp4
-rw-r--r--tools/gccld/gccld.cpp12
-rw-r--r--tools/llc/llc.cpp6
-rw-r--r--tools/lli/lli.cpp2
-rw-r--r--tools/llvm-ar/llvm-ar.cpp2
-rw-r--r--tools/llvm-as/llvm-as.cpp4
-rw-r--r--tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp2
-rw-r--r--tools/llvm-db/llvm-db.cpp2
-rw-r--r--tools/llvm-dis/llvm-dis.cpp4
-rw-r--r--tools/llvm-extract/llvm-extract.cpp2
-rw-r--r--tools/llvm-link/llvm-link.cpp4
-rw-r--r--tools/llvm-nm/llvm-nm.cpp2
-rw-r--r--tools/llvm-prof/llvm-prof.cpp2
-rw-r--r--tools/opt/opt.cpp4
17 files changed, 29 insertions, 29 deletions
diff --git a/tools/analyze/analyze.cpp b/tools/analyze/analyze.cpp
index f24f75d7c0..0207b8c6e1 100644
--- a/tools/analyze/analyze.cpp
+++ b/tools/analyze/analyze.cpp
@@ -117,7 +117,7 @@ namespace {
int main(int argc, char **argv) {
cl::ParseCommandLineOptions(argc, argv, " llvm analysis printer tool\n");
- PrintStackTraceOnErrorSignal();
+ sys::PrintStackTraceOnErrorSignal();
Module *CurMod = 0;
try {
diff --git a/tools/bugpoint/bugpoint.cpp b/tools/bugpoint/bugpoint.cpp
index 056ff52af0..1ff84f2408 100644
--- a/tools/bugpoint/bugpoint.cpp
+++ b/tools/bugpoint/bugpoint.cpp
@@ -38,7 +38,7 @@ int main(int argc, char **argv) {
" LLVM automatic testcase reducer. See\nhttp://"
"llvm.cs.uiuc.edu/docs/CommandGuide/bugpoint.html"
" for more information.\n");
- PrintStackTraceOnErrorSignal();
+ sys::PrintStackTraceOnErrorSignal();
BugDriver D(argv[0]);
if (D.addSources(InputFilenames)) return 1;
diff --git a/tools/extract/extract.cpp b/tools/extract/extract.cpp
index 7f19d8f999..050793b2e6 100644
--- a/tools/extract/extract.cpp
+++ b/tools/extract/extract.cpp
@@ -46,7 +46,7 @@ ExtractFunc("func", cl::desc("Specify function to extract"), cl::init("main"),
int main(int argc, char **argv) {
cl::ParseCommandLineOptions(argc, argv, " llvm extractor\n");
- PrintStackTraceOnErrorSignal();
+ sys::PrintStackTraceOnErrorSignal();
std::auto_ptr<Module> M(ParseBytecodeFile(InputFilename));
if (M.get() == 0) {
diff --git a/tools/gccas/gccas.cpp b/tools/gccas/gccas.cpp
index 1d5f9d1ff8..c5f6c2395a 100644
--- a/tools/gccas/gccas.cpp
+++ b/tools/gccas/gccas.cpp
@@ -117,7 +117,7 @@ void AddConfiguredTransformationPasses(PassManager &PM) {
int main(int argc, char **argv) {
cl::ParseCommandLineOptions(argc, argv, " llvm .s -> .o assembler for GCC\n");
- PrintStackTraceOnErrorSignal();
+ sys::PrintStackTraceOnErrorSignal();
std::auto_ptr<Module> M;
try {
@@ -156,7 +156,7 @@ int main(int argc, char **argv) {
// Make sure that the Out file gets unlinked from the disk if we get a
// signal
- RemoveFileOnSignal(OutputFilename);
+ sys::RemoveFileOnSignal(OutputFilename);
}
diff --git a/tools/gccld/gccld.cpp b/tools/gccld/gccld.cpp
index cddb9bdb47..ba4681534d 100644
--- a/tools/gccld/gccld.cpp
+++ b/tools/gccld/gccld.cpp
@@ -155,7 +155,7 @@ static void EmitShellScript(char **argv) {
int main(int argc, char **argv, char **envp) {
cl::ParseCommandLineOptions(argc, argv, " llvm linker for GCC\n");
- PrintStackTraceOnErrorSignal();
+ sys::PrintStackTraceOnErrorSignal();
std::string ModuleID("gccld-output");
std::auto_ptr<Module> Composite(new Module(ModuleID));
@@ -192,7 +192,7 @@ int main(int argc, char **argv, char **envp) {
// Ensure that the bytecode file gets removed from the disk if we get a
// SIGINT signal.
- RemoveFileOnSignal(RealBytecodeOutput);
+ sys::RemoveFileOnSignal(RealBytecodeOutput);
// Generate the bytecode file.
if (GenerateBytecode(Composite.get(), Strip, !NoInternalize, &Out)) {
@@ -215,8 +215,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.
- RemoveFileOnSignal(AssemblyFile);
- RemoveFileOnSignal(OutputFilename);
+ sys::RemoveFileOnSignal(AssemblyFile);
+ sys::RemoveFileOnSignal(OutputFilename);
// Determine the locations of the llc and gcc programs.
std::string llc = FindExecutable("llc", argv[0]);
@@ -240,8 +240,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.
- RemoveFileOnSignal(CFile);
- RemoveFileOnSignal(OutputFilename);
+ sys::RemoveFileOnSignal(CFile);
+ sys::RemoveFileOnSignal(OutputFilename);
// Determine the locations of the llc and gcc programs.
std::string llc = FindExecutable("llc", argv[0]);
diff --git a/tools/llc/llc.cpp b/tools/llc/llc.cpp
index ca7ad1663e..0d35ea20aa 100644
--- a/tools/llc/llc.cpp
+++ b/tools/llc/llc.cpp
@@ -64,7 +64,7 @@ GetFileNameRoot(const std::string &InputFilename) {
//
int main(int argc, char **argv) {
cl::ParseCommandLineOptions(argc, argv, " llvm system compiler\n");
- PrintStackTraceOnErrorSignal();
+ sys::PrintStackTraceOnErrorSignal();
// Load the module to be compiled...
std::auto_ptr<Module> M(ParseBytecodeFile(InputFilename));
@@ -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
- RemoveFileOnSignal(OutputFilename);
+ sys::RemoveFileOnSignal(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
- RemoveFileOnSignal(OutputFilename);
+ sys::RemoveFileOnSignal(OutputFilename);
}
}
diff --git a/tools/lli/lli.cpp b/tools/lli/lli.cpp
index c02b7b303a..066bfbc9e9 100644
--- a/tools/lli/lli.cpp
+++ b/tools/lli/lli.cpp
@@ -49,7 +49,7 @@ namespace {
int main(int argc, char **argv, char * const *envp) {
cl::ParseCommandLineOptions(argc, argv,
" llvm interpreter & dynamic compiler\n");
- PrintStackTraceOnErrorSignal();
+ sys::PrintStackTraceOnErrorSignal();
// Load the bytecode...
std::string ErrorMsg;
diff --git a/tools/llvm-ar/llvm-ar.cpp b/tools/llvm-ar/llvm-ar.cpp
index 91c5694c3f..4b79cd367d 100644
--- a/tools/llvm-ar/llvm-ar.cpp
+++ b/tools/llvm-ar/llvm-ar.cpp
@@ -547,7 +547,7 @@ void parseCL() {
int main(int argc, char **argv) {
cl::ParseCommandLineOptions(argc, argv);
- PrintStackTraceOnErrorSignal();
+ sys::PrintStackTraceOnErrorSignal();
parseCL();
diff --git a/tools/llvm-as/llvm-as.cpp b/tools/llvm-as/llvm-as.cpp
index 0f16db9094..b49702c32e 100644
--- a/tools/llvm-as/llvm-as.cpp
+++ b/tools/llvm-as/llvm-as.cpp
@@ -46,7 +46,7 @@ DisableVerify("disable-verify", cl::Hidden,
int main(int argc, char **argv) {
cl::ParseCommandLineOptions(argc, argv, " llvm .ll -> .bc assembler\n");
- PrintStackTraceOnErrorSignal();
+ sys::PrintStackTraceOnErrorSignal();
std::ostream *Out = 0;
try {
@@ -110,7 +110,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
- RemoveFileOnSignal(OutputFilename);
+ sys::RemoveFileOnSignal(OutputFilename);
}
}
diff --git a/tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp b/tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp
index 01053751cd..e3dff659d2 100644
--- a/tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp
+++ b/tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp
@@ -54,7 +54,7 @@ main(int argc, char **argv)
cl::ParseCommandLineOptions(argc, argv,
" llvm-bcanalyzer Analysis of ByteCode Dumper\n");
- PrintStackTraceOnErrorSignal();
+ sys::PrintStackTraceOnErrorSignal();
std::ostream* Out = &std::cout; // Default to printing to stdout...
std::istream* In = &std::cin; // Default to reading stdin
diff --git a/tools/llvm-db/llvm-db.cpp b/tools/llvm-db/llvm-db.cpp
index cceac920d5..1b7385c065 100644
--- a/tools/llvm-db/llvm-db.cpp
+++ b/tools/llvm-db/llvm-db.cpp
@@ -53,7 +53,7 @@ namespace {
int main(int argc, char **argv, char * const *envp) {
cl::ParseCommandLineOptions(argc, argv,
" llvm source-level debugger\n");
- PrintStackTraceOnErrorSignal();
+ sys::PrintStackTraceOnErrorSignal();
if (Version || !Quiet) {
std::cout << "llvm-db: The LLVM source-level debugger\n";
diff --git a/tools/llvm-dis/llvm-dis.cpp b/tools/llvm-dis/llvm-dis.cpp
index 5465712351..ac8101b6c4 100644
--- a/tools/llvm-dis/llvm-dis.cpp
+++ b/tools/llvm-dis/llvm-dis.cpp
@@ -42,7 +42,7 @@ CWriteMode("c", cl::desc("Obsolete option, do not use"), cl::ReallyHidden);
int main(int argc, char **argv) {
cl::ParseCommandLineOptions(argc, argv, " llvm .bc -> .ll disassembler\n");
- PrintStackTraceOnErrorSignal();
+ sys::PrintStackTraceOnErrorSignal();
std::ostream *Out = &std::cout; // Default to printing to stdout...
std::string ErrorMessage;
@@ -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
- RemoveFileOnSignal(OutputFilename);
+ sys::RemoveFileOnSignal(OutputFilename);
}
}
}
diff --git a/tools/llvm-extract/llvm-extract.cpp b/tools/llvm-extract/llvm-extract.cpp
index 7f19d8f999..050793b2e6 100644
--- a/tools/llvm-extract/llvm-extract.cpp
+++ b/tools/llvm-extract/llvm-extract.cpp
@@ -46,7 +46,7 @@ ExtractFunc("func", cl::desc("Specify function to extract"), cl::init("main"),
int main(int argc, char **argv) {
cl::ParseCommandLineOptions(argc, argv, " llvm extractor\n");
- PrintStackTraceOnErrorSignal();
+ sys::PrintStackTraceOnErrorSignal();
std::auto_ptr<Module> M(ParseBytecodeFile(InputFilename));
if (M.get() == 0) {
diff --git a/tools/llvm-link/llvm-link.cpp b/tools/llvm-link/llvm-link.cpp
index 5ba591bedf..3cd3c7b54d 100644
--- a/tools/llvm-link/llvm-link.cpp
+++ b/tools/llvm-link/llvm-link.cpp
@@ -85,7 +85,7 @@ static inline std::auto_ptr<Module> LoadFile(const std::string &FN) {
int main(int argc, char **argv) {
cl::ParseCommandLineOptions(argc, argv, " llvm linker\n");
- PrintStackTraceOnErrorSignal();
+ sys::PrintStackTraceOnErrorSignal();
assert(InputFilenames.size() > 0 && "OneOrMore is not working");
unsigned BaseArg = 0;
@@ -126,7 +126,7 @@ int main(int argc, char **argv) {
// Make sure that the Out file gets unlinked from the disk if we get a
// SIGINT
- RemoveFileOnSignal(OutputFilename);
+ sys::RemoveFileOnSignal(OutputFilename);
}
if (verifyModule(*Composite.get())) {
diff --git a/tools/llvm-nm/llvm-nm.cpp b/tools/llvm-nm/llvm-nm.cpp
index fc595b3c90..ba8b5d7f0d 100644
--- a/tools/llvm-nm/llvm-nm.cpp
+++ b/tools/llvm-nm/llvm-nm.cpp
@@ -150,7 +150,7 @@ void DumpSymbolNamesFromFile (std::string &Filename) {
int main(int argc, char **argv) {
cl::ParseCommandLineOptions(argc, argv, " llvm symbol table dumper\n");
- PrintStackTraceOnErrorSignal();
+ sys::PrintStackTraceOnErrorSignal();
ToolName = argv[0];
if (BSDFormat) OutputFormat = bsd;
diff --git a/tools/llvm-prof/llvm-prof.cpp b/tools/llvm-prof/llvm-prof.cpp
index f0e9dc7124..efb44d69b5 100644
--- a/tools/llvm-prof/llvm-prof.cpp
+++ b/tools/llvm-prof/llvm-prof.cpp
@@ -108,7 +108,7 @@ namespace {
int main(int argc, char **argv) {
cl::ParseCommandLineOptions(argc, argv, " llvm profile dump decoder\n");
- PrintStackTraceOnErrorSignal();
+ sys::PrintStackTraceOnErrorSignal();
// Read in the bytecode file...
std::string ErrorMessage;
diff --git a/tools/opt/opt.cpp b/tools/opt/opt.cpp
index 76ad6fdd86..4810ebd870 100644
--- a/tools/opt/opt.cpp
+++ b/tools/opt/opt.cpp
@@ -72,7 +72,7 @@ QuietA("quiet", cl::desc("Alias for -q"), cl::aliasopt(Quiet));
int main(int argc, char **argv) {
cl::ParseCommandLineOptions(argc, argv,
" llvm .bc -> .bc modular optimizer\n");
- PrintStackTraceOnErrorSignal();
+ sys::PrintStackTraceOnErrorSignal();
// Allocate a full target machine description only if necessary...
// FIXME: The choice of target should be controllable on the command line.
@@ -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
- RemoveFileOnSignal(OutputFilename);
+ sys::RemoveFileOnSignal(OutputFilename);
}
// If the output is set to be emitted to standard out, and standard out is a