regenerate

llvm-svn: 37281
This commit is contained in:
Chris Lattner 2007-05-22 06:47:55 +00:00
parent 9111cd6b8a
commit 31ab0ed37f
2 changed files with 161 additions and 184 deletions

File diff suppressed because it is too large Load Diff

View File

@ -27,6 +27,7 @@
%{
#include "ParserInternals.h"
#include "llvm/Module.h"
#include "llvm/Support/MathExtras.h"
#include <list>
#include "llvmAsmParser.h"
#include <cctype>
@ -95,17 +96,7 @@ static uint64_t HexIntToVal(const char *Buffer) {
// point representation of it.
//
static double HexToFP(const char *Buffer) {
// Behave nicely in the face of C TBAA rules... see:
// http://www.nullstone.com/htmls/category/aliastyp.htm
union {
uint64_t UI;
double FP;
} UIntToFP;
UIntToFP.UI = HexIntToVal(Buffer);
assert(sizeof(double) == sizeof(uint64_t) &&
"Data sizes incompatible on this target!");
return UIntToFP.FP; // Cast Hex constant to double
return BitsToDouble(HexIntToVal(Buffer)); // Cast Hex constant to double
}