diff options
author | Than McIntosh <thanm@google.com> | 2016-09-09 18:27:42 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2016-09-09 18:27:42 +0000 |
commit | 34144b6ec0548510df171956040f91a8742def29 (patch) | |
tree | 8e69d15b9145f6056b170cf44fb802a3b9139ed2 /gcc/go/gofrontend/export.h | |
parent | e81e83d04796b834c9f3e63d74b7202bca28e5c9 (diff) | |
download | gcc-34144b6ec0548510df171956040f91a8742def29.zip gcc-34144b6ec0548510df171956040f91a8742def29.tar.gz gcc-34144b6ec0548510df171956040f91a8742def29.tar.bz2 |
compiler: add abstraction layer for sha1 checksums.
Add new interface for the front end code to use when computing SHA1
checksums; the intent is to allow the different implementation in
different back ends.
No change in functionality for gccgo; this is an enabling change to
permit the front end to be used with other back ends (e.g. LLVM).
Reviewed-on: https://go-review.googlesource.com/28833
* go-sha1.cc: New file.
* Make-lang.in (GO_OBJS): Add go/go-sha1.o.
(CFLAGS-go/go-sha1.o): New variable.
From-SVN: r240053
Diffstat (limited to 'gcc/go/gofrontend/export.h')
-rw-r--r-- | gcc/go/gofrontend/export.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/go/gofrontend/export.h b/gcc/go/gofrontend/export.h index ee61d27..fec73fb 100644 --- a/gcc/go/gofrontend/export.h +++ b/gcc/go/gofrontend/export.h @@ -9,7 +9,7 @@ #include "string-dump.h" -struct sha1_ctx; +class Go_sha1_helper; class Gogo; class Import_init; class Bindings; @@ -109,8 +109,8 @@ class Export : public String_dump void write_and_sum_bytes(const char*, size_t); - // The checksum. - sha1_ctx* checksum_; + // The checksum helper. + Go_sha1_helper* sha1_helper_; }; Export(Stream*); |