add comments.

llvm-svn: 42237
This commit is contained in:
Chris Lattner 2007-09-22 18:48:32 +00:00
parent 2dd003e807
commit 9da7bc110a
1 changed files with 5 additions and 1 deletions

View File

@ -225,7 +225,11 @@ public:
const llvm::APFloat &getValue() const { return Value; }
double getValueAsDouble() const {
/// getValueAsDouble - This returns the value as an inaccurate double. Note
/// that this may cause loss of precision, but is useful for debugging dumps
/// etc.
double getValueAsDouble() const {
// FIXME: We need something for long double here.
if (cast<BuiltinType>(getType())->getKind() == BuiltinType::Float)
return Value.convertToFloat();
else