diff options
author | Chris Lattner <sabre@nondot.org> | 2004-02-28 19:37:18 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-02-28 19:37:18 +0000 |
commit | 275f6459ab5fca1a0b56920291d9cba4aae5d3b5 (patch) | |
tree | 0f09f469fb0c469fdc4321c0a109c714a6872010 /lib/Target/SparcV8/SparcV8RegisterInfo.cpp | |
parent | f13bd49d6af464306330e2c1147cc197c9eb0da2 (diff) | |
download | external_llvm-275f6459ab5fca1a0b56920291d9cba4aae5d3b5.zip external_llvm-275f6459ab5fca1a0b56920291d9cba4aae5d3b5.tar.gz external_llvm-275f6459ab5fca1a0b56920291d9cba4aae5d3b5.tar.bz2 |
Bring this directory into "it actually compiles" land
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11955 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/SparcV8/SparcV8RegisterInfo.cpp')
-rw-r--r-- | lib/Target/SparcV8/SparcV8RegisterInfo.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/Target/SparcV8/SparcV8RegisterInfo.cpp b/lib/Target/SparcV8/SparcV8RegisterInfo.cpp index d6fd83a..7f576f9 100644 --- a/lib/Target/SparcV8/SparcV8RegisterInfo.cpp +++ b/lib/Target/SparcV8/SparcV8RegisterInfo.cpp @@ -17,8 +17,8 @@ using namespace llvm; SparcV8RegisterInfo::SparcV8RegisterInfo() - : SparcV8GenRegisterInfo(SparcV8::ADJCALLSTACKDOWN, - SparcV8::ADJCALLSTACKUP) {} + : SparcV8GenRegisterInfo(V8::ADJCALLSTACKDOWN, + V8::ADJCALLSTACKUP) {} int SparcV8RegisterInfo::storeRegToStackSlot( MachineBasicBlock &MBB, @@ -80,6 +80,9 @@ void SparcV8RegisterInfo::emitEpilogue(MachineFunction &MF, const TargetRegisterClass* SparcV8RegisterInfo::getRegClassForType(const Type* Ty) const { switch (Ty->getPrimitiveID()) { + case Type::FloatTyID: + case Type::DoubleTyID: + assert(0 && "Floating point registers not supported yet!"); case Type::LongTyID: case Type::ULongTyID: assert(0 && "Long values can't fit in registers!"); default: assert(0 && "Invalid type to getClass!"); @@ -90,10 +93,7 @@ SparcV8RegisterInfo::getRegClassForType(const Type* Ty) const { case Type::UShortTyID: case Type::IntTyID: case Type::UIntTyID: - case Type::PointerTyID: return &GPRCInstance; - - case Type::FloatTyID: - case Type::DoubleTyID: return &FPRCInstance; + case Type::PointerTyID: return &IntRegsInstance; } } |