<div dir="ltr">mkstemp doesn't exist on Windows.  LLVM already has a support function which is the same in spirit as mkstemp.  This patch adds a method to the host layer to create a temporary file, and the implementation of this method on the private side delegates to the corresponding LLVM support function.<div>
<br></div><div>This fixes the build on Windows and should have identical semantics on other platforms, but please verify.</div></div>