forked from OSchip/llvm-project
Remove math.h/cmath include from DataTypes.h
DataTypes.h is meant to wrap the integer type and limits headers, which have some unfortunate variance. The FP math functions declared by math.h are not unnecessary. math.h took a noticeable amount of time to parse (~40ms), but that could be startup costs. Anyway, we don't need to include it, so skipping it can't hurt. This has been present since the initial CMake build was added in 2008.
This commit is contained in:
parent
9ed0612cca
commit
3a29393b47
|
@ -24,12 +24,6 @@
|
||||||
#ifndef LLVM_C_DATATYPES_H
|
#ifndef LLVM_C_DATATYPES_H
|
||||||
#define LLVM_C_DATATYPES_H
|
#define LLVM_C_DATATYPES_H
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
#include <cmath>
|
|
||||||
#else
|
|
||||||
#include <math.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <inttypes.h>
|
#include <inttypes.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue