repo.or.cz
/
llvm-complete.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[InstCombine] Signed saturation patterns
[llvm-complete.git]
/
test
/
tools
/
llvm-objcopy
/
Inputs
/
ungzip.py
blob
c7b1de96b25c439707ef2d56423885c0286fd90b
1
import
gzip
2
import
sys
3
4
with gzip
.
open
(
sys
.
argv
[
1
],
'rb'
)
as
f
:
5
writer
=
getattr
(
sys
.
stdout
,
'buffer'
,
None
)
6
if
writer
is None
:
7
writer
=
sys
.
stdout
8
if
sys
.
platform
==
"win32"
:
9
import
os
,
msvcrt
10
msvcrt
.
setmode
(
sys
.
stdout
.
fileno
(),
os
.
O_BINARY
)
11
12
writer
.
write
(
f
.
read
())
13
sys
.
stdout
.
flush
()