llvm-project/llvm/include/llvm-c
Raphael Isemann 9124fa5920 Fix broken HUGE_VALF macro in llvm-c/DataTypes.h
Commit 3a29393b47 removes the cmath/math.h
includes from the DataTypes.h header to speed up parsing. However the
DataTypes.h header was using this header to get the macro `HUGE_VAL` for its own
`HUGE_VALF` macro definition. Now the macro instead just expands into a plain
`HUGE_VAL` token which leads to compiler errors unless `math.h` was previously
included by the including source file. It also leads to compiler warnings with
enabled module builds which point out this inconsistency.

The correct way to fix this seems to be to just remove HUGE_VALF from the
header. llvm-c is not referencing that macro from what I can see and users
probably should just include the math headers if they need it (or define it on
their own for really old C versions).

Reviewed By: JDevlieghere

Differential Revision: https://reviews.llvm.org/D83761
2020-09-03 09:50:32 +02: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 [BFloat] Move LLVMBFloatTypeKind to the end of the enum 2020-06-19 01:51:44 +01:00
DataTypes.h Fix broken HUGE_VALF macro in llvm-c/DataTypes.h 2020-09-03 09:50:32 +02:00
DebugInfo.h [DebugInfo][flang]Added support for representing Fortran assumed length strings 2020-08-22 10:13:40 +05:30
Disassembler.h Wrap C APIs with pragmas enforcing -Werror=strict-prototypes 2019-11-19 13:18:43 -08:00
DisassemblerTypes.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
Error.h Wrap C APIs with pragmas enforcing -Werror=strict-prototypes 2019-11-19 13:18:43 -08: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
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] Add an OrcV2 C API function for configuring TargetMachines. 2020-04-10 15:51:29 -07:00
OrcBindings.h Wrap C APIs with pragmas enforcing -Werror=strict-prototypes 2019-11-19 13:18:43 -08: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