OSDN Git Service

Fold FEnv.h into the implementation
authorAlp Toker <alp@nuanti.com>
Mon, 9 Jun 2014 18:28:53 +0000 (18:28 +0000)
committerAlp Toker <alp@nuanti.com>
Mon, 9 Jun 2014 18:28:53 +0000 (18:28 +0000)
commitf4cf404837d962c67501ee0e07028801c9b10b6d
tree0bbc516fd88d7cb75dcb07eab6776e5a72f43a4d
parent7ffad46ea7edc8a6fa6fd7555c08387faacb8594
Fold FEnv.h into the implementation

Support headers shouldn't use config.h definitions, and they should never be
undefined like this.

ConstantFolding.cpp was the only user of this facility and already includes
config.h for other math features, so it makes sense to move the checks there at
point of use.

(The implicit config.h was also quite dangerous -- removing the FEnv.h include
would have silently disabled math constant folding without causing any tests to
fail. Need to investigate -Wundef once the cleanup is done.)

This eliminates the last config.h include from LLVM headers, paving the way for
more consistent configuration checks.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@210483 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Support/FEnv.h [deleted file]
lib/Analysis/ConstantFolding.cpp