[llvm-commits] CVS: llvm/utils/TableGen/CallingConvEmitter.cpp

Anton Korobeynikov asl at math.spbu.ru
Tue Mar 6 00:12:58 PST 2007



Changes in directory llvm/utils/TableGen:

CallingConvEmitter.cpp updated: 1.4 -> 1.5
---
Log message:

Use new SDIselParamAttr enumeration. This removes "magick" constants 
from formal attributes' flags processing.


---
Diffs of the changes:  (+2 -2)

 CallingConvEmitter.cpp |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)


Index: llvm/utils/TableGen/CallingConvEmitter.cpp
diff -u llvm/utils/TableGen/CallingConvEmitter.cpp:1.4 llvm/utils/TableGen/CallingConvEmitter.cpp:1.5
--- llvm/utils/TableGen/CallingConvEmitter.cpp:1.4	Tue Feb 27 23:29:06 2007
+++ llvm/utils/TableGen/CallingConvEmitter.cpp	Tue Mar  6 02:12:33 2007
@@ -123,8 +123,8 @@
     } 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!";






More information about the llvm-commits mailing list