[llvm] r289185 - Revert r289184, we need more configury for Darwin and *BSD.

Peter Collingbourne via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 8 21:04:30 PST 2016


Author: pcc
Date: Thu Dec  8 23:04:30 2016
New Revision: 289185

URL: http://llvm.org/viewvc/llvm-project?rev=289185&view=rev
Log:
Revert r289184, we need more configury for Darwin and *BSD.

Modified:
    llvm/trunk/lib/Support/raw_ostream.cpp

Modified: llvm/trunk/lib/Support/raw_ostream.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/raw_ostream.cpp?rev=289185&r1=289184&r2=289185&view=diff
==============================================================================
--- llvm/trunk/lib/Support/raw_ostream.cpp (original)
+++ llvm/trunk/lib/Support/raw_ostream.cpp Thu Dec  8 23:04:30 2016
@@ -598,11 +598,7 @@ void raw_fd_ostream::close() {
 uint64_t raw_fd_ostream::seek(uint64_t off) {
   assert(SupportsSeeking && "Stream does not support seeking!");
   flush();
-#ifdef LLVM_ON_WIN32
-  pos = ::_lseeki64(FD, off, SEEK_SET);
-#else
-  pos = ::lseek64(FD, off, SEEK_SET);
-#endif
+  pos = ::lseek(FD, off, SEEK_SET);
   if (pos == (uint64_t)-1)
     error_detected();
   return pos;




More information about the llvm-commits mailing list