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:
parent
9b8cc2874a
commit
8cb2484800
@ -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 {
|
||||
|
@ -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;
|
||||
|
@ -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) {
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
@ -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]);
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
|
@ -547,7 +547,7 @@ void parseCL() {
|
||||
|
||||
int main(int argc, char **argv) {
|
||||
cl::ParseCommandLineOptions(argc, argv);
|
||||
PrintStackTraceOnErrorSignal();
|
||||
sys::PrintStackTraceOnErrorSignal();
|
||||
|
||||
parseCL();
|
||||
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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
|
||||
|
@ -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";
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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())) {
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user