llvm-project/llvm/include/llvm-c
Amaury Séchet c2c259224b const char* for LLVMTargetMachineEmitToFile's argument
The `LLVMTargetMachineEmitToFile` takes a `char* Filename` right now, but it doesn't modify it.
This is annoying to use in the case where you want to pass a const string, because you either have to remove the const, or copy it somewhere else and pass that. Either way, it's not very nice.

I added a const and clang formatted it. This shouldn't break any ABI in my opinion.
I'm sorry but I didn't know whom to put as reviewer for this, so I chose someone with a lot of commits from the .cpp file.

Reviewed By: deadalnix

Differential Revision: https://reviews.llvm.org/D124453
2022-05-07 14:40:55 +00:00
..
Transforms [Passes] Remove legacy LoopUnswitch pass. 2022-04-29 10:30:49 +01:00
Analysis.h
BitReader.h
BitWriter.h
Comdat.h [NFC][Docs] Add missing Doxygen group comments for LLVM-C 2021-11-07 12:23:17 +01:00
Core.h [CAPI] Expose CastInst::getCastOpcode in C API 2022-04-30 18:40:04 -04:00
DataTypes.h
DebugInfo.h Cleanup header dependencies in LLVMCore 2022-02-02 06:54:20 +01:00
Deprecated.h [llvm-c] Add header deprecations 2021-12-06 09:17:10 +01:00
Disassembler.h
DisassemblerTypes.h [NFC][Docs] Add missing Doxygen group comments for LLVM-C 2021-11-07 12:23:17 +01:00
Error.h [NFC][Docs] Add missing Doxygen group comments for LLVM-C 2021-11-07 12:23:17 +01:00
ErrorHandling.h [NFC][Docs] Add missing Doxygen group comments for LLVM-C 2021-11-07 12:23:17 +01:00
ExecutionEngine.h
ExternC.h
IRReader.h [NFC][Docs] Add missing Doxygen group comments for LLVM-C 2021-11-07 12:23:17 +01:00
Initialization.h
LLJIT.h [NFC][Docs] Add missing Doxygen group comments for LLVM-C 2021-11-07 12:23:17 +01:00
Linker.h [NFC][Docs] Add missing Doxygen group comments for LLVM-C 2021-11-07 12:23:17 +01:00
Object.h
Orc.h [NFC][Docs] Add missing Doxygen group comments for LLVM-C 2021-11-07 12:23:17 +01:00
OrcEE.h [NFC][Docs] Add missing Doxygen group comments for LLVM-C 2021-11-07 12:23:17 +01:00
Remarks.h
Support.h [NFC][Docs] Add missing Doxygen group comments for LLVM-C 2021-11-07 12:23:17 +01:00
Target.h
TargetMachine.h const char* for LLVMTargetMachineEmitToFile's argument 2022-05-07 14:40:55 +00:00
Types.h
blake3.h [Support/BLAKE3] LLVM-specific changes over the original BLAKE3 C implementation 2022-03-24 10:26:39 -07:00
lto.h [LTO][Legacy] Add new API to check presence of ctor/dtor functions. 2021-07-28 12:41:56 +00:00
module.modulemap