Skip to content

Commit

Permalink
Comment out creation of temporary files (.{rtl,o})
Browse files Browse the repository at this point in the history
  • Loading branch information
Yiannis Tsiouris authored and yiannist committed Mar 5, 2014
1 parent ca44a7f commit 29f22e7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion lib/hipe/llvm/hipe_llvm_bin.erl
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,6 @@ check_sizes(Constant, Label) ->
LabelSize ->
match;
Other ->
io:format("No Constant/Label match:~nconst_size~w~nlabel_size:~w~n", [length(Constant),LabelSize]),
%io:format("No Constant/Label match:~nconst_size~w~nlabel_size:~w~n", [length(Constant),LabelSize]),
no_match
end.
6 changes: 3 additions & 3 deletions lib/hipe/llvm/hipe_rtl2llvm.erl
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,9 @@ translate(RTL, Roots) ->
%% Put first label of RTL code in process dictionary
find_code_entry_label(Code),
%% Print RTL to file
{ok, File_rtl} = file:open(atom_to_list(Fun_Name) ++ ".rtl", [write]),
hipe_rtl:pp(File_rtl, RTL),
file:close(File_rtl),
%{ok, File_rtl} = file:open(atom_to_list(Fun_Name) ++ ".rtl", [write]),
%hipe_rtl:pp(File_rtl, RTL),
%file:close(File_rtl),
%% Create NewData which containts also data for switches
{NewData, SwitchValues} = data_from_switches(Code, Data, []),
%% Create constant map
Expand Down
2 changes: 1 addition & 1 deletion lib/kernel/src/hipe_unified_loader.erl
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ ConstMap: ~w~nLabelMap: ~w~nExportMap ~w~nRefs ~w~n",
[Version, CheckSum, ConstAlign, ConstSize, ConstMap, LabelMap, ExportMap,
Refs]),

file:write_file("erl.o", CodeBinary, [binary]),
%file:write_file("erl.o", CodeBinary, [binary]),

%% Check that we are loading up-to-date code.
version_check(Version, Mod),
Expand Down

0 comments on commit 29f22e7

Please sign in to comment.