[lld] r274900 - COFF: remove unused function (touchFile)
Saleem Abdulrasool via llvm-commits
llvm-commits at lists.llvm.org
Fri Jul 8 11:36:57 PDT 2016
Author: compnerd
Date: Fri Jul 8 13:36:56 2016
New Revision: 274900
URL: http://llvm.org/viewvc/llvm-project?rev=274900&view=rev
Log:
COFF: remove unused function (touchFile)
Remove some dead code. NFC.
Modified:
lld/trunk/COFF/Driver.h
lld/trunk/COFF/DriverUtils.cpp
Modified: lld/trunk/COFF/Driver.h
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/COFF/Driver.h?rev=274900&r1=274899&r2=274900&view=diff
==============================================================================
--- lld/trunk/COFF/Driver.h (original)
+++ lld/trunk/COFF/Driver.h Fri Jul 8 13:36:56 2016
@@ -161,7 +161,6 @@ void checkFailIfMismatch(StringRef Arg);
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
Modified: lld/trunk/COFF/DriverUtils.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/COFF/DriverUtils.cpp?rev=274900&r1=274899&r2=274900&view=diff
==============================================================================
--- lld/trunk/COFF/DriverUtils.cpp (original)
+++ lld/trunk/COFF/DriverUtils.cpp Fri Jul 8 13:36:56 2016
@@ -584,13 +584,6 @@ static std::string writeToTempFile(Strin
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;
More information about the llvm-commits
mailing list