1*e4b17023SJohn Marino /* LTO IL compression streams. 2*e4b17023SJohn Marino 3*e4b17023SJohn Marino Copyright 2009 Free Software Foundation, Inc. 4*e4b17023SJohn Marino Contributed by Simon Baldwin <simonb@google.com> 5*e4b17023SJohn Marino 6*e4b17023SJohn Marino This file is part of GCC. 7*e4b17023SJohn Marino 8*e4b17023SJohn Marino GCC is free software; you can redistribute it and/or modify it 9*e4b17023SJohn Marino under the terms of the GNU General Public License as published by 10*e4b17023SJohn Marino the Free Software Foundation; either version 3, or (at your option) 11*e4b17023SJohn Marino any later version. 12*e4b17023SJohn Marino 13*e4b17023SJohn Marino GCC is distributed in the hope that it will be useful, but WITHOUT 14*e4b17023SJohn Marino ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 15*e4b17023SJohn Marino or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public 16*e4b17023SJohn Marino License for more details. 17*e4b17023SJohn Marino 18*e4b17023SJohn Marino You should have received a copy of the GNU General Public License 19*e4b17023SJohn Marino along with GCC; see the file COPYING3. If not see 20*e4b17023SJohn Marino <http://www.gnu.org/licenses/>. */ 21*e4b17023SJohn Marino 22*e4b17023SJohn Marino #ifndef GCC_LTO_COMPRESS_H 23*e4b17023SJohn Marino #define GCC_LTO_COMPRESS_H 24*e4b17023SJohn Marino 25*e4b17023SJohn Marino struct lto_compression_stream; 26*e4b17023SJohn Marino 27*e4b17023SJohn Marino /* In lto-compress.c. */ 28*e4b17023SJohn Marino extern struct lto_compression_stream 29*e4b17023SJohn Marino *lto_start_compression (void (*callback) (const char *, unsigned, void *), 30*e4b17023SJohn Marino void *opaque); 31*e4b17023SJohn Marino extern void lto_compress_block (struct lto_compression_stream *stream, 32*e4b17023SJohn Marino const char *base, size_t num_chars); 33*e4b17023SJohn Marino extern void lto_end_compression (struct lto_compression_stream *stream); 34*e4b17023SJohn Marino 35*e4b17023SJohn Marino extern struct lto_compression_stream 36*e4b17023SJohn Marino *lto_start_uncompression (void (*callback) (const char *, unsigned, void *), 37*e4b17023SJohn Marino void *opaque); 38*e4b17023SJohn Marino extern void lto_uncompress_block (struct lto_compression_stream *stream, 39*e4b17023SJohn Marino const char *base, size_t num_chars); 40*e4b17023SJohn Marino extern void lto_end_uncompression (struct lto_compression_stream *stream); 41*e4b17023SJohn Marino 42*e4b17023SJohn Marino #endif /* GCC_LTO_COMPRESS_H */ 43