aboutsummaryrefslogtreecommitdiffstats
path: root/lib/hipe/llvm/hipe_llvm.erl
diff options
context:
space:
mode:
authorHans Bolinder <[email protected]>2017-06-28 15:40:42 +0200
committerSiri Hansen <[email protected]>2017-07-06 17:53:23 +0200
commite2f42f4ce7d2cb2a9eaa1cfeb1b6b69b061704f7 (patch)
treec2472cf3471fc85a22120be366fd68315569d927 /lib/hipe/llvm/hipe_llvm.erl
parent6e770e804b294217181550f0caa1a2ebcbd08e32 (diff)
downloadotp-e2f42f4ce7d2cb2a9eaa1cfeb1b6b69b061704f7.tar.gz
otp-e2f42f4ce7d2cb2a9eaa1cfeb1b6b69b061704f7.tar.bz2
otp-e2f42f4ce7d2cb2a9eaa1cfeb1b6b69b061704f7.zip
hipe: Do not use deprecated functions in string(3)
Should probably be left for the HiPE team to fix
Diffstat (limited to 'lib/hipe/llvm/hipe_llvm.erl')
-rw-r--r--lib/hipe/llvm/hipe_llvm.erl11
1 files changed, 6 insertions, 5 deletions
diff --git a/lib/hipe/llvm/hipe_llvm.erl b/lib/hipe/llvm/hipe_llvm.erl
index 641d3fda0a..ccd40162cb 100644
--- a/lib/hipe/llvm/hipe_llvm.erl
+++ b/lib/hipe/llvm/hipe_llvm.erl
@@ -1005,11 +1005,12 @@ pp_ins(Dev, Ver, I) ->
write(Dev, [" ", adj_stack_offset(I),")\n"]);
#llvm_meta{} ->
write(Dev, ["!", meta_id(I), " = !{ "]),
- write(Dev, string:join([if is_list(Op) -> ["!\"", Op, "\""];
- is_integer(Op) -> ["i32 ", integer_to_list(Op)];
- is_record(Op, llvm_meta) ->
- ["!", meta_id(Op)]
- end || Op <- meta_operands(I)], ", ")),
+ write(Dev, lists:join(", ",
+ [if is_list(Op) -> ["!\"", Op, "\""];
+ is_integer(Op) -> ["i32 ", integer_to_list(Op)];
+ is_record(Op, llvm_meta) ->
+ ["!", meta_id(Op)]
+ end || Op <- meta_operands(I)])),
write(Dev, " }\n");
Other ->
exit({?MODULE, pp_ins, {"Unknown LLVM instruction", Other}})