[PATCH] Fix LLMTargetMachineEmitToFile require non-const filename

Arvid Gerstmann via llvm-commits llvm-commits at lists.llvm.org
Fri Dec 23 06:11:51 PST 2016


Hello,

hope you all have a nice Christmas!
I've noticed the C API to emit an object file requires the filename to be a
non-const char array, for no apparent reason.
I've attached a patch with a fix. It changes the public API of
'LLVMTargetMachineEmitToFile', but shouldn't have any backwards
compatibility or ABI problems.

Patch generated with git. Apply via patch -p1.


Best,
Arvid
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20161223/5f6ecc86/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch-1.patch
Type: application/octet-stream
Size: 1423 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20161223/5f6ecc86/attachment.obj>


More information about the llvm-commits mailing list