diff options
author | Evan Cheng <evan.cheng@apple.com> | 2006-11-04 09:40:23 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2006-11-04 09:40:23 +0000 |
commit | c51737f46ff3bd4379b576630c1b83ce163738c5 (patch) | |
tree | 9266095d9a4a8c7e053ca8bd56f5cf9dbbc630eb /utils/TableGen/CodeGenTarget.cpp | |
parent | 6fc40079f374cfeeb63808fd96ea670ae036f809 (diff) |
Clean up some code.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31451 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/TableGen/CodeGenTarget.cpp')
-rw-r--r-- | utils/TableGen/CodeGenTarget.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/utils/TableGen/CodeGenTarget.cpp b/utils/TableGen/CodeGenTarget.cpp index 9e45f2ea87..f8410c17ff 100644 --- a/utils/TableGen/CodeGenTarget.cpp +++ b/utils/TableGen/CodeGenTarget.cpp @@ -19,6 +19,7 @@ #include "Record.h" #include "llvm/ADT/StringExtras.h" #include "llvm/Support/CommandLine.h" +#include "llvm/Target/TargetInstrInfo.h" #include <set> #include <algorithm> using namespace llvm; @@ -294,7 +295,8 @@ static std::pair<unsigned, unsigned> parseConstraint(const std::string &CStr, unsigned TIdx = I->getOperandNamed(Name); if (TIdx >= FIdx) throw "Illegal tied-to operand constraint '" + CStr + "'"; - return std::make_pair(FIdx, (TIdx << 16) | 1); + return std::make_pair(FIdx, (TIdx << 16) | + (1 << (unsigned)TargetInstrInfo::TIED_TO)); } static std::vector<unsigned> parseConstraints(const std::string &CStr, |