aboutsummaryrefslogtreecommitdiffstats
path: root/checklink/PPC_utils.ml
diff options
context:
space:
mode:
authorBernhard Schommer <bernhardschommer@gmail.com>2015-10-20 14:45:56 +0200
committerBernhard Schommer <bernhardschommer@gmail.com>2015-10-20 14:45:56 +0200
commited6043fe910f7a320f7af6d3f9d35f39f5cf7ee1 (patch)
tree3fab134f5444f0472a1ff8c06e5b7686a40648dc /checklink/PPC_utils.ml
parent4d542bc7eafadb16b845cf05d1eb4988eb55ed0f (diff)
parent8a95c3e07fd02eaa87f8cca447bc7d7c2642eb22 (diff)
downloadcompcert-ed6043fe910f7a320f7af6d3f9d35f39f5cf7ee1.tar.gz
compcert-ed6043fe910f7a320f7af6d3f9d35f39f5cf7ee1.zip
Merge remote-tracking branch 'origin/master' into named-externals
Conflicts: arm/TargetPrinter.ml backend/CMparser.mly backend/SelectLongproof.v backend/Selectionproof.v cfrontend/C2C.ml checklink/Asm_printers.ml checklink/Check.ml checklink/Fuzz.ml common/AST.v debug/DebugInformation.ml debug/DebugInit.ml debug/DwarfPrinter.ml debug/DwarfTypes.mli debug/Dwarfgen.ml exportclight/ExportClight.ml ia32/TargetPrinter.ml powerpc/Asm.v powerpc/SelectOpproof.v powerpc/TargetPrinter.ml
Diffstat (limited to 'checklink/PPC_utils.ml')
-rw-r--r--checklink/PPC_utils.ml26
1 files changed, 0 insertions, 26 deletions
diff --git a/checklink/PPC_utils.ml b/checklink/PPC_utils.ml
deleted file mode 100644
index 6c865dd0..00000000
--- a/checklink/PPC_utils.ml
+++ /dev/null
@@ -1,26 +0,0 @@
-open ELF_types
-open ELF_utils
-open Library
-open PPC_parsers
-open PPC_types
-
-let code_at_vaddr (e: elf)(vaddr: int32)(nb_instr: int): ecode option =
- begin match bitstring_at_vaddr e vaddr (Safe32.of_int (4 * nb_instr)) with
- | None -> None
- | Some(code_bs, _, _) -> Some (parse_code_as_list code_bs)
- end
-
-let code_of_sym (e: elf) (sym: elf32_sym): ecode option =
- begin match bitstring_at_vaddr e sym.st_value sym.st_size with
- | None -> None
- | Some(bs, _, _) -> Some(parse_code_as_list bs)
- end
-
-let code_of_sym_ndx (e: elf) (ndx: int): ecode option =
- code_of_sym e e.e_symtab.(ndx)
-
-let code_of_sym_name (e: elf) (name: string): ecode option =
- begin match ndx_of_sym_name e name with
- | Some ndx -> code_of_sym_ndx e ndx
- | None -> None
- end