diff options
author | John Hodge <tpg@ucc.asn.au> | 2017-11-05 10:30:45 +0800 |
---|---|---|
committer | John Hodge <tpg@ucc.asn.au> | 2017-11-05 10:30:45 +0800 |
commit | 840c541cd1a000bb29f68ea3c059863ea7260281 (patch) | |
tree | 72a197b570fe26a9fbb63c1230b14ab92e362586 /src/hir/serialise.cpp | |
parent | 715ab49457f5d797fae8b155f51142674fe0075c (diff) | |
download | mrust-840c541cd1a000bb29f68ea3c059863ea7260281.tar.gz |
MIR - Use SwitchValue terminator
Diffstat (limited to 'src/hir/serialise.cpp')
-rw-r--r-- | src/hir/serialise.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/hir/serialise.cpp b/src/hir/serialise.cpp index e200a39e..d80154ed 100644 --- a/src/hir/serialise.cpp +++ b/src/hir/serialise.cpp @@ -81,6 +81,11 @@ namespace { // m_out.write_count(val); //} + void serialise(bool v) { m_out.write_bool(v); }; + void serialise(unsigned int v) { m_out.write_count(v); }; + void serialise(uint64_t v) { m_out.write_u64c(v); }; + void serialise(int64_t v) { m_out.write_i64c(v); }; + void serialise_type(const ::HIR::TypeRef& ty) { m_out.write_tag( ty.m_data.tag() ); @@ -791,8 +796,6 @@ namespace { ) } - void serialise(unsigned int v) { m_out.write_count(v); }; - void serialise(const ::HIR::Linkage& linkage) { //m_out.write_tag( static_cast<int>(linkage.type) ); |