llvm-project/llvm/include/llvm-c
Nick Lewycky fe43168348 Creating a named struct requires only a Context and a name, but looking up a struct by name requires a Module. The method on Module merely accesses the LLVMContextImpl and no data from the module itself, so this patch moves getTypeByName to a static method on StructType that takes a Context and a name.
There's a small number of users of this function, they are all updated.

This updates the C API adding a new method LLVMGetTypeByName2 that takes a context and a name.

Differential Revision: https://reviews.llvm.org/D78793
2020-11-30 11:34:12 -08:00
..
Transforms [Bindings] Add LLVMAddInstructionSimplifyPass 2020-09-01 12:38:49 -07:00
Analysis.h Wrap C APIs with pragmas enforcing -Werror=strict-prototypes 2019-11-19 13:18:43 -08:00
BitReader.h Wrap C APIs with pragmas enforcing -Werror=strict-prototypes 2019-11-19 13:18:43 -08:00
BitWriter.h Wrap C APIs with pragmas enforcing -Werror=strict-prototypes 2019-11-19 13:18:43 -08:00
Comdat.h Wrap C APIs with pragmas enforcing -Werror=strict-prototypes 2019-11-19 13:18:43 -08:00
Core.h Creating a named struct requires only a Context and a name, but looking up a struct by name requires a Module. The method on Module merely accesses the LLVMContextImpl and no data from the module itself, so this patch moves getTypeByName to a static method on StructType that takes a Context and a name. 2020-11-30 11:34:12 -08:00
DataTypes.h Fix broken HUGE_VALF macro in llvm-c/DataTypes.h 2020-09-03 09:50:32 +02:00
DebugInfo.h [DebugInfo] Support for DW_TAG_generic_subrange 2020-10-29 01:34:15 +05:30
Disassembler.h Wrap C APIs with pragmas enforcing -Werror=strict-prototypes 2019-11-19 13:18:43 -08:00
DisassemblerTypes.h
Error.h [Support] Add a C-API function to create a StringError instance. 2020-10-19 01:59:04 -07:00
ErrorHandling.h Wrap C APIs with pragmas enforcing -Werror=strict-prototypes 2019-11-19 13:18:43 -08:00
ExecutionEngine.h [MCJIT] Check for RuntimeDyld errors in MCJIT::finalizeLoadedModules. 2020-03-13 13:58:41 -07:00
ExternC.h Wrap C APIs with pragmas enforcing -Werror=strict-prototypes 2019-11-19 13:18:43 -08:00
IRReader.h Wrap C APIs with pragmas enforcing -Werror=strict-prototypes 2019-11-19 13:18:43 -08:00
Initialization.h Wrap C APIs with pragmas enforcing -Werror=strict-prototypes 2019-11-19 13:18:43 -08:00
LLJIT.h [ORC] Break up C-API header Orc.h, and add JITEventListener support. 2020-10-19 01:59:04 -07:00
LinkTimeOptimizer.h Wrap C APIs with pragmas enforcing -Werror=strict-prototypes 2019-11-19 13:18:43 -08:00
Linker.h Wrap C APIs with pragmas enforcing -Werror=strict-prototypes 2019-11-19 13:18:43 -08:00
Object.h Wrap C APIs with pragmas enforcing -Werror=strict-prototypes 2019-11-19 13:18:43 -08:00
Orc.h [ORC] Break up C-API header Orc.h, and add JITEventListener support. 2020-10-19 01:59:04 -07:00
OrcEE.h [ORC] Break up C-API header Orc.h, and add JITEventListener support. 2020-10-19 01:59:04 -07:00
Remarks.h Wrap C APIs with pragmas enforcing -Werror=strict-prototypes 2019-11-19 13:18:43 -08:00
Support.h Wrap C APIs with pragmas enforcing -Werror=strict-prototypes 2019-11-19 13:18:43 -08:00
Target.h Wrap C APIs with pragmas enforcing -Werror=strict-prototypes 2019-11-19 13:18:43 -08:00
TargetMachine.h Wrap C APIs with pragmas enforcing -Werror=strict-prototypes 2019-11-19 13:18:43 -08:00
Types.h Wrap C APIs with pragmas enforcing -Werror=strict-prototypes 2019-11-19 13:18:43 -08:00
lto.h [LTO][Legacy] Add new API to query Mach-O CPU (sub)type 2020-02-28 12:56:05 -08:00
module.modulemap