projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
26186c7
)
Support: Use a 64-bit seek in raw_fd_ostream::seek().
author
Peter Collingbourne
<peter@pcc.me.uk>
Fri, 9 Dec 2016 04:57:19 +0000
(
04:57
+0000)
committer
Peter Collingbourne
<peter@pcc.me.uk>
Fri, 9 Dec 2016 04:57:19 +0000
(
04:57
+0000)
llvm-svn: 289184
llvm/lib/Support/raw_ostream.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/Support/raw_ostream.cpp
b/llvm/lib/Support/raw_ostream.cpp
index
92c7967
..
c51f1d3
100644
(file)
--- a/
llvm/lib/Support/raw_ostream.cpp
+++ b/
llvm/lib/Support/raw_ostream.cpp
@@
-598,7
+598,11
@@
void raw_fd_ostream::close() {
uint64_t raw_fd_ostream::seek(uint64_t off) {
assert(SupportsSeeking && "Stream does not support seeking!");
flush();
- pos = ::lseek(FD, off, SEEK_SET);
+#ifdef LLVM_ON_WIN32
+ pos = ::_lseeki64(FD, off, SEEK_SET);
+#else
+ pos = ::lseek64(FD, off, SEEK_SET);
+#endif
if (pos == (uint64_t)-1)
error_detected();
return pos;