[llvm-commits] CVS: llvm/tools/gccld/gccld.cpp

Reid Spencer reid at x10sys.com
Sun Aug 29 12:29:07 PDT 2004



Changes in directory llvm/tools/gccld:

gccld.cpp updated: 1.76 -> 1.77
---
Log message:

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


---
Diffs of the changes:  (+6 -6)

Index: llvm/tools/gccld/gccld.cpp
diff -u llvm/tools/gccld/gccld.cpp:1.76 llvm/tools/gccld/gccld.cpp:1.77
--- llvm/tools/gccld/gccld.cpp:1.76	Wed Jun 23 12:32:09 2004
+++ llvm/tools/gccld/gccld.cpp	Sun Aug 29 14:28:55 2004
@@ -155,7 +155,7 @@
 
 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 @@
 
   // 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 @@
       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 @@
       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]);






More information about the llvm-commits mailing list