Mercurial > projects > ldc
diff gen/tollvm.cpp @ 1347:3647bef175d7
Remove some other code that tested for LLVM before r67588.
author | Frits van Bommel <fvbommel wxs.nl> |
---|---|
date | Tue, 12 May 2009 16:02:51 +0200 |
parents | c74dfdcc5043 |
children | 45aca7e7cc88 |
line wrap: on
line diff
--- a/gen/tollvm.cpp Tue May 12 15:50:48 2009 +0200 +++ b/gen/tollvm.cpp Tue May 12 16:02:51 2009 +0200 @@ -543,16 +543,8 @@ return LLConstantFP::get(llty, value); else if(llty == LLType::X86_FP80Ty) { uint64_t bits[] = {0, 0}; - #if LLVM_REV < 67562 - // Prior to r67562, the i80 APInt format expected by the APFloat - // constructor was different than the memory layout on the actual - // processor. - bits[1] = *(uint16_t*)&value; - bits[0] = *(uint64_t*)((uint16_t*)&value + 1); - #else bits[0] = *(uint64_t*)&value; bits[1] = *(uint16_t*)((uint64_t*)&value + 1); - #endif return LLConstantFP::get(APFloat(APInt(80, 2, bits))); } else { assert(0 && "Unknown floating point type encountered");