summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/FoldingSet.cpp
diff options
context:
space:
mode:
authorDale Johannesen <dalej@apple.com>2009-01-21 20:32:55 +0000
committerDale Johannesen <dalej@apple.com>2009-01-21 20:32:55 +0000
commit1f86498f9356864881356f4c6815d31e1bdeddb7 (patch)
treee5504821f989aa3d296dda3d335994580d4d2306 /llvm/lib/Support/FoldingSet.cpp
parente387d9ed5b6832a877a895a6449b53b2f4e816a0 (diff)
downloadbcm5719-llvm-1f86498f9356864881356f4c6815d31e1bdeddb7.tar.gz
bcm5719-llvm-1f86498f9356864881356f4c6815d31e1bdeddb7.zip
Do not use host floating point types when emitting
ASCII IR; loading and storing these can change the bits of NaNs on some hosts. Remove or add warnings at a few other places using host floating point; this is a bad thing to do in general. llvm-svn: 62712
Diffstat (limited to 'llvm/lib/Support/FoldingSet.cpp')
-rw-r--r--llvm/lib/Support/FoldingSet.cpp6
1 files changed, 0 insertions, 6 deletions
diff --git a/llvm/lib/Support/FoldingSet.cpp b/llvm/lib/Support/FoldingSet.cpp
index d2b02f240c9..3a1a0cd842e 100644
--- a/llvm/lib/Support/FoldingSet.cpp
+++ b/llvm/lib/Support/FoldingSet.cpp
@@ -61,12 +61,6 @@ void FoldingSetNodeID::AddInteger(unsigned long long I) {
if ((uint64_t)(int)I != I)
Bits.push_back(unsigned(I >> 32));
}
-void FoldingSetNodeID::AddFloat(float F) {
- Bits.push_back(FloatToBits(F));
-}
-void FoldingSetNodeID::AddDouble(double D) {
- AddInteger(DoubleToBits(D));
-}
void FoldingSetNodeID::AddString(const char *String) {
unsigned Size = static_cast<unsigned>(strlen(String));
OpenPOWER on IntegriCloud