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

Reid Spencer reid at x10sys.com
Mon Dec 13 12:03:13 PST 2004



Changes in directory llvm/tools/gccld:

gccld.cpp updated: 1.87 -> 1.88
---
Log message:

For PR351: http://llvm.cs.uiuc.edu/PR351 :
Replace MakeFileReadable and MakeFileExecutable (from FileUtilities) with
sys::Path::makeReadable and sys::Path:makeExecutable, respectively. 


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

Index: llvm/tools/gccld/gccld.cpp
diff -u llvm/tools/gccld/gccld.cpp:1.87 llvm/tools/gccld/gccld.cpp:1.88
--- llvm/tools/gccld/gccld.cpp:1.87	Mon Dec 13 11:18:19 2004
+++ llvm/tools/gccld/gccld.cpp	Mon Dec 13 14:03:02 2004
@@ -329,11 +329,11 @@
       }
     
       // Make the script executable...
-      MakeFileExecutable(OutputFilename);
+      sys::Path(OutputFilename).makeExecutable();
 
       // Make the bytecode file readable and directly executable in LLEE as well
-      MakeFileExecutable(RealBytecodeOutput);
-      MakeFileReadable(RealBytecodeOutput);
+      sys::Path(RealBytecodeOutput).makeExecutable();
+      sys::Path(RealBytecodeOutput).makeReadable();
     }
   } catch (const char*msg) {
     std::cerr << argv[0] << ": " << msg << "\n";






More information about the llvm-commits mailing list