[PATCH] D124453: const char* for LLVMTargetMachineEmitToFile's argument
Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sat May 7 07:41:15 PDT 2022
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rGc2c259224bb3: const char* for LLVMTargetMachineEmitToFile's argument (authored by Amaury Séchet <deadalnix at gmail.com>).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D124453/new/
https://reviews.llvm.org/D124453
Files:
llvm/include/llvm-c/TargetMachine.h
llvm/lib/Target/TargetMachineC.cpp
Index: llvm/lib/Target/TargetMachineC.cpp
===================================================================
--- llvm/lib/Target/TargetMachineC.cpp
+++ llvm/lib/Target/TargetMachineC.cpp
@@ -213,7 +213,9 @@
}
LLVMBool LLVMTargetMachineEmitToFile(LLVMTargetMachineRef T, LLVMModuleRef M,
- char* Filename, LLVMCodeGenFileType codegen, char** ErrorMessage) {
+ const char *Filename,
+ LLVMCodeGenFileType codegen,
+ char **ErrorMessage) {
std::error_code EC;
raw_fd_ostream dest(Filename, EC, sys::fs::OF_None);
if (EC) {
Index: llvm/include/llvm-c/TargetMachine.h
===================================================================
--- llvm/include/llvm-c/TargetMachine.h
+++ llvm/include/llvm-c/TargetMachine.h
@@ -136,7 +136,9 @@
wraps several c++ only classes (among them a file stream). Returns any
error in ErrorMessage. Use LLVMDisposeMessage to dispose the message. */
LLVMBool LLVMTargetMachineEmitToFile(LLVMTargetMachineRef T, LLVMModuleRef M,
- char *Filename, LLVMCodeGenFileType codegen, char **ErrorMessage);
+ const char *Filename,
+ LLVMCodeGenFileType codegen,
+ char **ErrorMessage);
/** Compile the LLVM IR stored in \p M and store the result in \p OutMemBuf. */
LLVMBool LLVMTargetMachineEmitToMemoryBuffer(LLVMTargetMachineRef T, LLVMModuleRef M,
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D124453.427865.patch
Type: text/x-patch
Size: 1510 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220507/6ce8a758/attachment.bin>
More information about the llvm-commits
mailing list