aboutsummaryrefslogtreecommitdiff
path: root/lib/Target
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-03-29 03:51:11 +0000
committerChris Lattner <sabre@nondot.org>2002-03-29 03:51:11 +0000
commitc9aa7dfee4987dba9bf287ff5a747bc86fa21f3a (patch)
treee935cfcbdefcf293945465de8dd7f50dd48fdf0e /lib/Target
parent6bfd6a578a3a4fa95c585c988ee712ba880f9923 (diff)
s/Method/Function
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2035 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target')
-rw-r--r--lib/Target/SparcV9/SparcV9Internals.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Target/SparcV9/SparcV9Internals.h b/lib/Target/SparcV9/SparcV9Internals.h
index 41ad8a911e..1de5496cbf 100644
--- a/lib/Target/SparcV9/SparcV9Internals.h
+++ b/lib/Target/SparcV9/SparcV9Internals.h
@@ -304,8 +304,9 @@ public:
Type::PrimitiveID ty = type->getPrimitiveID();
unsigned res;
+ // FIXME: Comparing types like this isn't very safe...
if ((ty && ty <= Type::LongTyID) || (ty == Type::LabelTyID) ||
- (ty == Type::MethodTyID) || (ty == Type::PointerTyID) )
+ (ty == Type::FunctionTyID) || (ty == Type::PointerTyID) )
res = IntRegClassID; // sparc int reg (ty=0: void)
else if (ty <= Type::DoubleTyID)
res = FloatRegClassID; // sparc float reg class