diff options
author | Magnus Lång <[email protected]> | 2016-05-04 15:15:31 +0200 |
---|---|---|
committer | Magnus Lång <[email protected]> | 2016-05-04 17:53:36 +0200 |
commit | 3d9b2a2b4ad7f24b7297fe2133ac65dafd297f87 (patch) | |
tree | 9c8b1f14b84f7ccfff1f36c54b7c521587dd7371 /lib/hipe/llvm/hipe_llvm_main.erl | |
parent | 6a1290f534164d1a5771dba37c23124652b9f7c9 (diff) | |
download | otp-3d9b2a2b4ad7f24b7297fe2133ac65dafd297f87.tar.gz otp-3d9b2a2b4ad7f24b7297fe2133ac65dafd297f87.tar.bz2 otp-3d9b2a2b4ad7f24b7297fe2133ac65dafd297f87.zip |
hipe_llvm: Syntax compatibility with 3.7-3.8
Diffstat (limited to 'lib/hipe/llvm/hipe_llvm_main.erl')
-rw-r--r-- | lib/hipe/llvm/hipe_llvm_main.erl | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/hipe/llvm/hipe_llvm_main.erl b/lib/hipe/llvm/hipe_llvm_main.erl index 3c24425828..ac1f49c73b 100644 --- a/lib/hipe/llvm/hipe_llvm_main.erl +++ b/lib/hipe/llvm/hipe_llvm_main.erl @@ -78,7 +78,8 @@ compile_with_llvm(FunName, Arity, LLVMCode, Options, UseBuffer) -> false -> [] end, {ok, File_llvm} = file:open(Dir ++ Filename ++ ".ll", OpenOpts), - hipe_llvm:pp_ins_list(File_llvm, LLVMCode), + Ver = hipe:get_llvm_version(), %% Should probably cache this + hipe_llvm:pp_ins_list(File_llvm, Ver, LLVMCode), %% delayed_write can cause file:close not to do a close, hence the two calls ok = file:close(File_llvm), __ = file:close(File_llvm), |