Use new SDIselParamAttr enumeration. This removes "magick" constants

from formal attributes' flags processing.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34963 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Anton Korobeynikov
2007-03-06 08:12:33 +00:00
parent 3c2319e245
commit 1d9baccc9b
4 changed files with 13 additions and 7 deletions

View File

@@ -123,8 +123,8 @@ void CallingConvEmitter::EmitAction(Record *Action,
} else if (Action->isSubClassOf("CCPromoteToType")) {
Record *DestTy = Action->getValueAsDef("DestTy");
O << IndentStr << "LocVT = " << getEnumName(getValueType(DestTy)) <<";\n";
O << IndentStr << "LocInfo = (ArgFlags & 1) ? CCValAssign::SExt"
<< " : CCValAssign::ZExt;\n";
O << IndentStr << "LocInfo = (ArgFlags & SDISelParamFlags::Signed) ? \n"
<< IndentStr << IndentStr << "CCValAssign::SExt : CCValAssign::ZExt;\n";
} else {
Action->dump();
throw "Unknown CCAction!";