diff options
Diffstat (limited to 'tools')
-rw-r--r-- | tools/analyze/analyze.cpp | 2 | ||||
-rw-r--r-- | tools/bugpoint/bugpoint.cpp | 2 | ||||
-rw-r--r-- | tools/extract/extract.cpp | 2 | ||||
-rw-r--r-- | tools/gccas/gccas.cpp | 4 | ||||
-rw-r--r-- | tools/gccld/gccld.cpp | 12 | ||||
-rw-r--r-- | tools/llc/llc.cpp | 6 | ||||
-rw-r--r-- | tools/lli/lli.cpp | 2 | ||||
-rw-r--r-- | tools/llvm-ar/llvm-ar.cpp | 2 | ||||
-rw-r--r-- | tools/llvm-as/llvm-as.cpp | 4 | ||||
-rw-r--r-- | tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp | 2 | ||||
-rw-r--r-- | tools/llvm-db/llvm-db.cpp | 2 | ||||
-rw-r--r-- | tools/llvm-dis/llvm-dis.cpp | 4 | ||||
-rw-r--r-- | tools/llvm-extract/llvm-extract.cpp | 2 | ||||
-rw-r--r-- | tools/llvm-link/llvm-link.cpp | 4 | ||||
-rw-r--r-- | tools/llvm-nm/llvm-nm.cpp | 2 | ||||
-rw-r--r-- | tools/llvm-prof/llvm-prof.cpp | 2 | ||||
-rw-r--r-- | tools/opt/opt.cpp | 4 |
17 files changed, 29 insertions, 29 deletions
diff --git a/tools/analyze/analyze.cpp b/tools/analyze/analyze.cpp index f24f75d..0207b8c 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 056ff52..1ff84f2 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 7f19d8f..050793b 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 1d5f9d1..c5f6c23 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 cddb9bd..ba46815 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 ca7ad16..0d35ea2 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 c02b7b3..066bfbc 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 91c5694..4b79cd3 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 0f16db9..b49702c 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 0105375..e3dff65 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 cceac92..1b7385c 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 5465712..ac8101b 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 7f19d8f..050793b 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 5ba591b..3cd3c7b 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 fc595b3..ba8b5d7 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 f0e9dc7..efb44d6 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 76ad6fdd..4810ebd 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 |