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));
// 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)) {
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]);
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]);