Skip to content

Commit

Permalink
Remove commented-out CilLocation.get_labelsLoc
Browse files Browse the repository at this point in the history
  • Loading branch information
sim642 committed Feb 21, 2024
1 parent 45e01c3 commit 3f20225
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions src/common/util/cilLocation.ml
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,7 @@ let get_labelLoc = function
| CaseRange (_, _, loc, eloc) -> {loc; eloc}
| Default (loc, eloc) -> {loc; eloc}

(* let rec get_labelsLoc = function
| [] -> {loc = locUnknown; eloc = locUnknown}
| label :: labels ->
let loc = get_labelLoc label in
if CilType.Location.equal loc Cil.locUnknown then
get_labelsLoc labels (* maybe another label has known location *)
else
loc *)
(* TODO: need get_labelsLoc? *)

(** Following functions are similar to [Cil] versions, but return expression location instead of entire statement location, where possible. *)
(* Ideally we would have both copies of the functions available, but UpdateCil would have to be adapted per-stmtkind/instr to store and update either one or two locations. *)
Expand Down

0 comments on commit 3f20225

Please sign in to comment.