Is64Bit reflects the capability of the chip, not an aspect of the target os

llvm-svn: 25749
This commit is contained in:
Chris Lattner 2006-01-28 18:23:48 +00:00
parent be08957dc5
commit b3ab2d3a42
1 changed files with 0 additions and 6 deletions

View File

@ -139,12 +139,6 @@ X86Subtarget::X86Subtarget(const Module &M, const std::string &FS) {
// Parse features string.
ParseSubtargetFeatures(FS, CPU);
// FIXME: Just because the CPU supports 64-bit operation doesn't mean it isn't
// currently running a 32-bit operating system. This must be taken into account.
// This hack will do for now, though obviously it breaks cross-compilation.
if (sizeof(void *) == 4)
Is64Bit = false;
// Default to ELF unless otherwise specified.
TargetType = isELF;