summaryrefslogtreecommitdiffstats
path: root/llvm/utils/TableGen
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2006-12-01 22:57:41 +0000
committerEvan Cheng <evan.cheng@apple.com>2006-12-01 22:57:41 +0000
commit8e940784831b34be7045a1ec322449ba51c9c2f9 (patch)
treeeb656dfe177f520b3540836e30ffaba0061c0df5 /llvm/utils/TableGen
parent8a95b0bf21f64f066ba25f928aeaf218d5a01a4d (diff)
downloadbcm5719-llvm-8e940784831b34be7045a1ec322449ba51c9c2f9.tar.gz
bcm5719-llvm-8e940784831b34be7045a1ec322449ba51c9c2f9.zip
Match TargetInstrInfo changes.
llvm-svn: 32107
Diffstat (limited to 'llvm/utils/TableGen')
-rw-r--r--llvm/utils/TableGen/CodeGenTarget.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/llvm/utils/TableGen/CodeGenTarget.cpp b/llvm/utils/TableGen/CodeGenTarget.cpp
index 4613c1ba248..a8d3abccafb 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.
OpenPOWER on IntegriCloud