Patch 10 for long double. Doing constants right needs expanding ConstantFP
authorDale Johannesen <dalej@apple.com>
Thu, 9 Aug 2007 22:51:36 +0000 (22:51 +0000)
committerDale Johannesen <dalej@apple.com>
Thu, 9 Aug 2007 22:51:36 +0000 (22:51 +0000)
commitebbc95da49c6f4ae09947a9f4ab6a8616ea40e3b
treec4a224d84c042e795937f37b988b43f2996bc903
parenta3231ba237b1a5113a71253eab50c6b7a5239132
Patch 10 for long double.  Doing constants right needs expanding ConstantFP
to handle values bigger than double.  If we assume host==target and host
long double works correctly, this is not too bad, but we don't want to
have that limitation longterm.  I could implement accepting double
constants as long double or something like that, which would lead to
incorrect codegen with no errors; the more I think about that the worse
it seems.  Rather than do such a hack that would be backed out later,
I'm settling for giving reasonable error messages, for now.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@40974 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Bitcode/Reader/BitcodeReader.cpp
lib/Bitcode/Writer/BitcodeWriter.cpp
lib/VMCore/Constants.cpp