From 8e940784831b34be7045a1ec322449ba51c9c2f9 Mon Sep 17 00:00:00 2001 From: Evan Cheng Date: Fri, 1 Dec 2006 22:57:41 +0000 Subject: [PATCH] Match TargetInstrInfo changes. llvm-svn: 32107 --- llvm/utils/TableGen/CodeGenTarget.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/llvm/utils/TableGen/CodeGenTarget.cpp b/llvm/utils/TableGen/CodeGenTarget.cpp index 4613c1ba248b..a8d3abccafbb 100644 --- a/llvm/utils/TableGen/CodeGenTarget.cpp +++ b/llvm/utils/TableGen/CodeGenTarget.cpp @@ -302,7 +302,7 @@ static void ParseConstraint(const std::string &CStr, CodeGenInstruction *I) { unsigned FlatOpNo = I->getFlattenedOperandNumber(SrcOp); // Build the string for the operand. std::string OpConstraint = - "((" + utostr(FlatOpNo) + " << 16) | (1 << TargetInstrInfo::TIED_TO))"; + "((" + utostr(FlatOpNo) + " << 16) | (1 << TOI::TIED_TO))"; if (!I->OperandList[DestOp.first].Constraints[DestOp.second].empty()) @@ -422,8 +422,7 @@ CodeGenInstruction::CodeGenInstruction(Record *R, const std::string &AsmStr) if (!OperandList[1].Constraints[0].empty()) throw R->getName() + ": cannot use isTwoAddress property: instruction " "already has constraint set!"; - OperandList[1].Constraints[0] = - "((0 << 16) | (1 << TargetInstrInfo::TIED_TO))"; + OperandList[1].Constraints[0] = "((0 << 16) | (1 << TOI::TIED_TO))"; } // Any operands with unset constraints get 0 as their constraint.