summaryrefslogtreecommitdiff
path: root/asmcomp/dwarf_low/encoding_attribute.ml
blob: 588a6803b1da702e93be2bb00fd0d05232fca360 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
(***********************************************************************)
(*                                                                     *)
(*                                OCaml                                *)
(*                                                                     *)
(*                  Mark Shinwell, Jane Street Europe                  *)
(*                                                                     *)
(*  Copyright and licence information to be added.                     *)
(*                                                                     *)
(*                                                                     *)
(*                                                                     *)
(***********************************************************************)
 
open Std_internal
 
type t =
  | DW_ATE_signed
 
let signed = DW_ATE_signed
 
let encode = function
  | DW_ATE_signed -> 0x05
 
let size _t = 1
 
let as_dwarf_value t =
  Value.as_byte (encode t)