1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-01-31 12:41:49 +01:00

The functions in Signal.h are now in the llvm::sys namespace - adjust

llvm-svn: 16091
This commit is contained in:
Reid Spencer 2004-08-29 19:28:55 +00:00
parent 9b8cc2874a
commit 8cb2484800
16 changed files with 28 additions and 28 deletions

View File

@ -117,7 +117,7 @@ namespace {
int main(int argc, char **argv) { int main(int argc, char **argv) {
cl::ParseCommandLineOptions(argc, argv, " llvm analysis printer tool\n"); cl::ParseCommandLineOptions(argc, argv, " llvm analysis printer tool\n");
PrintStackTraceOnErrorSignal(); sys::PrintStackTraceOnErrorSignal();
Module *CurMod = 0; Module *CurMod = 0;
try { try {

View File

@ -38,7 +38,7 @@ int main(int argc, char **argv) {
" LLVM automatic testcase reducer. See\nhttp://" " LLVM automatic testcase reducer. See\nhttp://"
"llvm.cs.uiuc.edu/docs/CommandGuide/bugpoint.html" "llvm.cs.uiuc.edu/docs/CommandGuide/bugpoint.html"
" for more information.\n"); " for more information.\n");
PrintStackTraceOnErrorSignal(); sys::PrintStackTraceOnErrorSignal();
BugDriver D(argv[0]); BugDriver D(argv[0]);
if (D.addSources(InputFilenames)) return 1; if (D.addSources(InputFilenames)) return 1;

View File

@ -46,7 +46,7 @@ ExtractFunc("func", cl::desc("Specify function to extract"), cl::init("main"),
int main(int argc, char **argv) { int main(int argc, char **argv) {
cl::ParseCommandLineOptions(argc, argv, " llvm extractor\n"); cl::ParseCommandLineOptions(argc, argv, " llvm extractor\n");
PrintStackTraceOnErrorSignal(); sys::PrintStackTraceOnErrorSignal();
std::auto_ptr<Module> M(ParseBytecodeFile(InputFilename)); std::auto_ptr<Module> M(ParseBytecodeFile(InputFilename));
if (M.get() == 0) { if (M.get() == 0) {

View File

@ -117,7 +117,7 @@ void AddConfiguredTransformationPasses(PassManager &PM) {
int main(int argc, char **argv) { int main(int argc, char **argv) {
cl::ParseCommandLineOptions(argc, argv, " llvm .s -> .o assembler for GCC\n"); cl::ParseCommandLineOptions(argc, argv, " llvm .s -> .o assembler for GCC\n");
PrintStackTraceOnErrorSignal(); sys::PrintStackTraceOnErrorSignal();
std::auto_ptr<Module> M; std::auto_ptr<Module> M;
try { 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 // Make sure that the Out file gets unlinked from the disk if we get a
// signal // signal
RemoveFileOnSignal(OutputFilename); sys::RemoveFileOnSignal(OutputFilename);
} }

View File

@ -155,7 +155,7 @@ static void EmitShellScript(char **argv) {
int main(int argc, char **argv, char **envp) { int main(int argc, char **argv, char **envp) {
cl::ParseCommandLineOptions(argc, argv, " llvm linker for GCC\n"); cl::ParseCommandLineOptions(argc, argv, " llvm linker for GCC\n");
PrintStackTraceOnErrorSignal(); sys::PrintStackTraceOnErrorSignal();
std::string ModuleID("gccld-output"); std::string ModuleID("gccld-output");
std::auto_ptr<Module> Composite(new Module(ModuleID)); 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 // Ensure that the bytecode file gets removed from the disk if we get a
// SIGINT signal. // SIGINT signal.
RemoveFileOnSignal(RealBytecodeOutput); sys::RemoveFileOnSignal(RealBytecodeOutput);
// Generate the bytecode file. // Generate the bytecode file.
if (GenerateBytecode(Composite.get(), Strip, !NoInternalize, &Out)) { if (GenerateBytecode(Composite.get(), Strip, !NoInternalize, &Out)) {
@ -215,8 +215,8 @@ int main(int argc, char **argv, char **envp) {
std::string AssemblyFile = OutputFilename + ".s"; std::string AssemblyFile = OutputFilename + ".s";
// Mark the output files for removal if we get an interrupt. // Mark the output files for removal if we get an interrupt.
RemoveFileOnSignal(AssemblyFile); sys::RemoveFileOnSignal(AssemblyFile);
RemoveFileOnSignal(OutputFilename); sys::RemoveFileOnSignal(OutputFilename);
// Determine the locations of the llc and gcc programs. // Determine the locations of the llc and gcc programs.
std::string llc = FindExecutable("llc", argv[0]); 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"; std::string CFile = OutputFilename + ".cbe.c";
// Mark the output files for removal if we get an interrupt. // Mark the output files for removal if we get an interrupt.
RemoveFileOnSignal(CFile); sys::RemoveFileOnSignal(CFile);
RemoveFileOnSignal(OutputFilename); sys::RemoveFileOnSignal(OutputFilename);
// Determine the locations of the llc and gcc programs. // Determine the locations of the llc and gcc programs.
std::string llc = FindExecutable("llc", argv[0]); std::string llc = FindExecutable("llc", argv[0]);

View File

@ -64,7 +64,7 @@ GetFileNameRoot(const std::string &InputFilename) {
// //
int main(int argc, char **argv) { int main(int argc, char **argv) {
cl::ParseCommandLineOptions(argc, argv, " llvm system compiler\n"); cl::ParseCommandLineOptions(argc, argv, " llvm system compiler\n");
PrintStackTraceOnErrorSignal(); sys::PrintStackTraceOnErrorSignal();
// Load the module to be compiled... // Load the module to be compiled...
std::auto_ptr<Module> M(ParseBytecodeFile(InputFilename)); 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 // Make sure that the Out file gets unlinked from the disk if we get a
// SIGINT // SIGINT
RemoveFileOnSignal(OutputFilename); sys::RemoveFileOnSignal(OutputFilename);
} else { } else {
Out = &std::cout; 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 // Make sure that the Out file gets unlinked from the disk if we get a
// SIGINT // SIGINT
RemoveFileOnSignal(OutputFilename); sys::RemoveFileOnSignal(OutputFilename);
} }
} }

View File

@ -49,7 +49,7 @@ namespace {
int main(int argc, char **argv, char * const *envp) { int main(int argc, char **argv, char * const *envp) {
cl::ParseCommandLineOptions(argc, argv, cl::ParseCommandLineOptions(argc, argv,
" llvm interpreter & dynamic compiler\n"); " llvm interpreter & dynamic compiler\n");
PrintStackTraceOnErrorSignal(); sys::PrintStackTraceOnErrorSignal();
// Load the bytecode... // Load the bytecode...
std::string ErrorMsg; std::string ErrorMsg;

View File

@ -547,7 +547,7 @@ void parseCL() {
int main(int argc, char **argv) { int main(int argc, char **argv) {
cl::ParseCommandLineOptions(argc, argv); cl::ParseCommandLineOptions(argc, argv);
PrintStackTraceOnErrorSignal(); sys::PrintStackTraceOnErrorSignal();
parseCL(); parseCL();

View File

@ -46,7 +46,7 @@ DisableVerify("disable-verify", cl::Hidden,
int main(int argc, char **argv) { int main(int argc, char **argv) {
cl::ParseCommandLineOptions(argc, argv, " llvm .ll -> .bc assembler\n"); cl::ParseCommandLineOptions(argc, argv, " llvm .ll -> .bc assembler\n");
PrintStackTraceOnErrorSignal(); sys::PrintStackTraceOnErrorSignal();
std::ostream *Out = 0; std::ostream *Out = 0;
try { try {
@ -110,7 +110,7 @@ int main(int argc, char **argv) {
std::ios_base::trunc | std::ios_base::binary); std::ios_base::trunc | std::ios_base::binary);
// Make sure that the Out file gets unlinked from the disk if we get a // Make sure that the Out file gets unlinked from the disk if we get a
// SIGINT // SIGINT
RemoveFileOnSignal(OutputFilename); sys::RemoveFileOnSignal(OutputFilename);
} }
} }

View File

@ -54,7 +54,7 @@ main(int argc, char **argv)
cl::ParseCommandLineOptions(argc, argv, cl::ParseCommandLineOptions(argc, argv,
" llvm-bcanalyzer Analysis of ByteCode Dumper\n"); " llvm-bcanalyzer Analysis of ByteCode Dumper\n");
PrintStackTraceOnErrorSignal(); sys::PrintStackTraceOnErrorSignal();
std::ostream* Out = &std::cout; // Default to printing to stdout... std::ostream* Out = &std::cout; // Default to printing to stdout...
std::istream* In = &std::cin; // Default to reading stdin std::istream* In = &std::cin; // Default to reading stdin

View File

@ -53,7 +53,7 @@ namespace {
int main(int argc, char **argv, char * const *envp) { int main(int argc, char **argv, char * const *envp) {
cl::ParseCommandLineOptions(argc, argv, cl::ParseCommandLineOptions(argc, argv,
" llvm source-level debugger\n"); " llvm source-level debugger\n");
PrintStackTraceOnErrorSignal(); sys::PrintStackTraceOnErrorSignal();
if (Version || !Quiet) { if (Version || !Quiet) {
std::cout << "llvm-db: The LLVM source-level debugger\n"; std::cout << "llvm-db: The LLVM source-level debugger\n";

View File

@ -42,7 +42,7 @@ CWriteMode("c", cl::desc("Obsolete option, do not use"), cl::ReallyHidden);
int main(int argc, char **argv) { int main(int argc, char **argv) {
cl::ParseCommandLineOptions(argc, argv, " llvm .bc -> .ll disassembler\n"); cl::ParseCommandLineOptions(argc, argv, " llvm .bc -> .ll disassembler\n");
PrintStackTraceOnErrorSignal(); sys::PrintStackTraceOnErrorSignal();
std::ostream *Out = &std::cout; // Default to printing to stdout... std::ostream *Out = &std::cout; // Default to printing to stdout...
std::string ErrorMessage; 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 // Make sure that the Out file gets unlinked from the disk if we get a
// SIGINT // SIGINT
RemoveFileOnSignal(OutputFilename); sys::RemoveFileOnSignal(OutputFilename);
} }
} }
} }

View File

@ -85,7 +85,7 @@ static inline std::auto_ptr<Module> LoadFile(const std::string &FN) {
int main(int argc, char **argv) { int main(int argc, char **argv) {
cl::ParseCommandLineOptions(argc, argv, " llvm linker\n"); cl::ParseCommandLineOptions(argc, argv, " llvm linker\n");
PrintStackTraceOnErrorSignal(); sys::PrintStackTraceOnErrorSignal();
assert(InputFilenames.size() > 0 && "OneOrMore is not working"); assert(InputFilenames.size() > 0 && "OneOrMore is not working");
unsigned BaseArg = 0; 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 // Make sure that the Out file gets unlinked from the disk if we get a
// SIGINT // SIGINT
RemoveFileOnSignal(OutputFilename); sys::RemoveFileOnSignal(OutputFilename);
} }
if (verifyModule(*Composite.get())) { if (verifyModule(*Composite.get())) {

View File

@ -150,7 +150,7 @@ void DumpSymbolNamesFromFile (std::string &Filename) {
int main(int argc, char **argv) { int main(int argc, char **argv) {
cl::ParseCommandLineOptions(argc, argv, " llvm symbol table dumper\n"); cl::ParseCommandLineOptions(argc, argv, " llvm symbol table dumper\n");
PrintStackTraceOnErrorSignal(); sys::PrintStackTraceOnErrorSignal();
ToolName = argv[0]; ToolName = argv[0];
if (BSDFormat) OutputFormat = bsd; if (BSDFormat) OutputFormat = bsd;

View File

@ -108,7 +108,7 @@ namespace {
int main(int argc, char **argv) { int main(int argc, char **argv) {
cl::ParseCommandLineOptions(argc, argv, " llvm profile dump decoder\n"); cl::ParseCommandLineOptions(argc, argv, " llvm profile dump decoder\n");
PrintStackTraceOnErrorSignal(); sys::PrintStackTraceOnErrorSignal();
// Read in the bytecode file... // Read in the bytecode file...
std::string ErrorMessage; std::string ErrorMessage;

View File

@ -72,7 +72,7 @@ QuietA("quiet", cl::desc("Alias for -q"), cl::aliasopt(Quiet));
int main(int argc, char **argv) { int main(int argc, char **argv) {
cl::ParseCommandLineOptions(argc, argv, cl::ParseCommandLineOptions(argc, argv,
" llvm .bc -> .bc modular optimizer\n"); " llvm .bc -> .bc modular optimizer\n");
PrintStackTraceOnErrorSignal(); sys::PrintStackTraceOnErrorSignal();
// Allocate a full target machine description only if necessary... // Allocate a full target machine description only if necessary...
// FIXME: The choice of target should be controllable on the command line. // 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 // Make sure that the Output file gets unlinked from the disk if we get a
// SIGINT // SIGINT
RemoveFileOnSignal(OutputFilename); sys::RemoveFileOnSignal(OutputFilename);
} }
// If the output is set to be emitted to standard out, and standard out is a // If the output is set to be emitted to standard out, and standard out is a