~rdoering/ubuntu/karmic/erlang/fix-535090

« back to all changes in this revision

Viewing changes to lib/compiler/src/beam_dead.erl

  • Committer: Bazaar Package Importer
  • Author(s): Sergei Golovan
  • Date: 2009-02-15 16:42:52 UTC
  • mfrom: (1.1.13 upstream)
  • mto: (3.3.1 squeeze)
  • mto: This revision was merged to the branch mainline in revision 17.
  • Revision ID: james.westby@ubuntu.com-20090215164252-dxpjjuq108nz4noa
Upload to unstable after lenny is released.

Show diffs side-by-side

added added

removed removed

Lines of Context:
145
145
%%%     therefore the is_boolean test is redundant.)
146
146
%%%
147
147
 
148
 
-import(lists, [map/2,mapfoldl/3,reverse/1,reverse/2,keysearch/3,foreach/2]).
 
148
-import(lists, [mapfoldl/3,reverse/1]).
149
149
 
150
150
module({Mod,Exp,Attr,Fs0,_}, _Opts) ->
151
 
    Fs1 = map(fun split_blocks/1, Fs0),
 
151
    Fs1 = [split_blocks(F) || F <- Fs0],
152
152
    {Fs2,Lc1} = beam_clean:clean_labels(Fs1),
153
153
    {Fs,Lc} = mapfoldl(fun function/2, Lc1, Fs2),
154
154
    %%{Fs,Lc} = {Fs2,Lc1},