[PATCH] D21993: COFF: remove touchFile

Saleem Abdulrasool via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 5 07:32:16 PDT 2016


compnerd created this revision.
compnerd added a reviewer: ruiu.
compnerd added a subscriber: llvm-commits.
compnerd set the repository for this revision to rL LLVM.

Remove an unused function.  NFC.


Repository:
  rL LLVM

http://reviews.llvm.org/D21993

Files:
  COFF/Driver.h
  COFF/DriverUtils.cpp

Index: COFF/DriverUtils.cpp
===================================================================
--- COFF/DriverUtils.cpp
+++ COFF/DriverUtils.cpp
@@ -584,13 +584,6 @@
   return Path.str();
 }
 
-void touchFile(StringRef Path) {
-  int FD;
-  std::error_code EC = sys::fs::openFileForWrite(Path, FD, sys::fs::F_Append);
-  error(EC, "failed to create a file");
-  sys::Process::SafelyCloseFileDescriptor(FD);
-}
-
 static std::string getImplibPath() {
   if (!Config->Implib.empty())
     return Config->Implib;
Index: COFF/Driver.h
===================================================================
--- COFF/Driver.h
+++ COFF/Driver.h
@@ -161,7 +161,6 @@
 std::unique_ptr<MemoryBuffer>
 convertResToCOFF(const std::vector<MemoryBufferRef> &MBs);
 
-void touchFile(StringRef Path);
 void createPDB(StringRef Path);
 
 // Create enum with OPT_xxx values for each option in Options.td


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D21993.62749.patch
Type: text/x-patch
Size: 883 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160705/d2181e30/attachment.bin>


More information about the llvm-commits mailing list