aboutsummaryrefslogtreecommitdiff
path: root/utils/TableGen/CodeGenTarget.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-08-21 20:00:36 +0000
committerChris Lattner <sabre@nondot.org>2004-08-21 20:00:36 +0000
commit98df506e712d51bf74ae526e2b6304bef9025a7e (patch)
treef98649fdc503cffd0d7c3b6ada9ed070f8d6359c /utils/TableGen/CodeGenTarget.cpp
parent8edcd8465361f3aa29082e1b1f2a1c88afc0836a (diff)
Make alignment be in bits, just like size is
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15969 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/TableGen/CodeGenTarget.cpp')
-rw-r--r--utils/TableGen/CodeGenTarget.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/utils/TableGen/CodeGenTarget.cpp b/utils/TableGen/CodeGenTarget.cpp
index 49fd772d2e..b9c7f5172c 100644
--- a/utils/TableGen/CodeGenTarget.cpp
+++ b/utils/TableGen/CodeGenTarget.cpp
@@ -133,7 +133,8 @@ void CodeGenTarget::ReadRegisterClasses() const {
CodeGenRegisterClass::CodeGenRegisterClass(Record *R) : TheDef(R) {
SpillSize = R->getValueAsInt("Size");
- SpillAlignment = R->getValueAsInt("Alignment");
+ // FIXME: should convert to bits in all targets.
+ SpillAlignment = R->getValueAsInt("Alignment")*8;
if (CodeInit *CI = dynamic_cast<CodeInit*>(R->getValueInit("Methods")))
MethodDefinitions = CI->getValue();