diff options
author | Chris Lattner <sabre@nondot.org> | 2001-07-15 00:18:39 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2001-07-15 00:18:39 +0000 |
commit | a59c266d843ffef164a5038ed7d14ffd90b9d445 (patch) | |
tree | c7023b406bdef059e1712efc7f0b6ba0d65d9f93 /lib/VMCore/ConstantPool.cpp | |
parent | ff5eccef96fa0344b0b6035da543640c2e885b75 (diff) |
Add support for assembly printing fp constants
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore/ConstantPool.cpp')
-rw-r--r-- | lib/VMCore/ConstantPool.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/VMCore/ConstantPool.cpp b/lib/VMCore/ConstantPool.cpp index 7f2f30a606..bb61b33f5e 100644 --- a/lib/VMCore/ConstantPool.cpp +++ b/lib/VMCore/ConstantPool.cpp @@ -296,8 +296,7 @@ string ConstPoolUInt::getStrValue() const { } string ConstPoolFP::getStrValue() const { - assert(0 && "FP Constants Not implemented yet!!!!!!!!!!!"); - return "% FP Constants NI!" /* + dtostr(Val)*/; + return ftostr(Val); } string ConstPoolType::getStrValue() const { @@ -429,8 +428,8 @@ bool ConstPoolFP::isValueValidForType(const Type *Ty, double Val) { return false; // These can't be represented as floating point! // TODO: Figure out how to test if a double can be cast to a float! - /* case Type::FloatTyID: + /* return (Val <= UINT8_MAX); */ case Type::DoubleTyID: |