Skip to content

Commit

Permalink
Shorten code
Browse files Browse the repository at this point in the history
  • Loading branch information
kostis committed Mar 7, 2012
1 parent 91f2318 commit a35f498
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/hipe/llvm/hipe_llvm_merge.erl
Expand Up @@ -60,8 +60,7 @@ merge_refs([{MFA, _, CodeSize, _, Refs, _}|Rest], ConstMap, TotalSize, Acc) ->
%% must change all the constant labels in the Refs to the corresponding
%% ConstNo, that can be found in the ConstMap (#pcm_entry{}).
UpdatedRefs = labels_to_numbers(MFA, Refs, ConstMap),
NewRefs = lists:map(fun(X) -> add_offset_to_ref(X, TotalSize) end,
UpdatedRefs),
NewRefs = [add_offset_to_ref(X, TotalSize) || X <- UpdatedRefs],
merge_refs(Rest, ConstMap, TotalSize+CodeSize, NewRefs++Acc).

labels_to_numbers(MFA, Refs, ConstMap) ->
Expand Down

0 comments on commit a35f498

Please sign in to comment.