aboutsummaryrefslogtreecommitdiff
path: root/src/boot/me/dwarf.ml
diff options
context:
space:
mode:
authorGraydon Hoare <[email protected]>2010-11-02 11:11:58 -0700
committerGraydon Hoare <[email protected]>2010-11-02 11:11:58 -0700
commitda13c508d83032ca13679e1e122e96d25ac23283 (patch)
tree51c3d466dfedf3ad8e21b56c4769325561b3d650 /src/boot/me/dwarf.ml
parentUn-XFAIL self tests on Darwin (diff)
downloadrust-da13c508d83032ca13679e1e122e96d25ac23283.tar.xz
rust-da13c508d83032ca13679e1e122e96d25ac23283.zip
First pass on splitting stratum and opacity off of effects. WIP.
Diffstat (limited to 'src/boot/me/dwarf.ml')
-rw-r--r--src/boot/me/dwarf.ml15
1 files changed, 7 insertions, 8 deletions
diff --git a/src/boot/me/dwarf.ml b/src/boot/me/dwarf.ml
index 08f8c347..86a0c8a6 100644
--- a/src/boot/me/dwarf.ml
+++ b/src/boot/me/dwarf.ml
@@ -1527,10 +1527,9 @@ let dwarf_visitor
(* Note: weird encoding: mutable+pure = unsafe. *)
let mut_byte, pure_byte =
match eff with
- Ast.UNSAFE -> (1,1)
- | Ast.STATE -> (1,0)
- | Ast.IO -> (0,0)
- | Ast.PURE -> (0,1)
+ Ast.EFF_unsafe -> (1,1)
+ | Ast.EFF_impure -> (0,0)
+ | Ast.EFF_pure -> (0,1)
in
SEQ [|
(* DW_AT_mutable: DW_FORM_flag *)
@@ -2888,10 +2887,10 @@ let rec extract_mod_items
let get_effect die =
match (get_flag die DW_AT_mutable, get_flag die DW_AT_pure) with
(* Note: weird encoding: mutable+pure = unsafe. *)
- (true, true) -> Ast.UNSAFE
- | (true, false) -> Ast.STATE
- | (false, false) -> Ast.IO
- | (false, true) -> Ast.PURE
+ (true, true) -> Ast.EFF_unsafe
+ | (false, false) -> Ast.EFF_impure
+ | (false, true) -> Ast.EFF_pure
+ | _ -> failwith "bad effect encoding"
in
let get_name die = get_str die DW_AT_name in