Alignment is now in bits.
authorChris Lattner <sabre@nondot.org>
Sat, 21 Aug 2004 20:15:25 +0000 (20:15 +0000)
committerChris Lattner <sabre@nondot.org>
Sat, 21 Aug 2004 20:15:25 +0000 (20:15 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15976 91177308-0d34-0410-b5e6-96231b3b80d8

utils/TableGen/CodeGenTarget.cpp

index b9c7f5172c4289cc3a13029f0858167e2db915a4..49fd772d2e5dd8c3edc132e665c366445dd273ac 100644 (file)
@@ -133,8 +133,7 @@ void CodeGenTarget::ReadRegisterClasses() const {
 
 CodeGenRegisterClass::CodeGenRegisterClass(Record *R) : TheDef(R) {
   SpillSize = R->getValueAsInt("Size");
-  // FIXME: should convert to bits in all targets.
-  SpillAlignment = R->getValueAsInt("Alignment")*8;
+  SpillAlignment = R->getValueAsInt("Alignment");
 
   if (CodeInit *CI = dynamic_cast<CodeInit*>(R->getValueInit("Methods")))
     MethodDefinitions = CI->getValue();