diff options
Diffstat (limited to 'llvm/utils/TableGen')
| -rw-r--r-- | llvm/utils/TableGen/PredicateExpander.cpp | 8 | 
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/utils/TableGen/PredicateExpander.cpp b/llvm/utils/TableGen/PredicateExpander.cpp index 62a01dc8854..56ffa77e4ed 100644 --- a/llvm/utils/TableGen/PredicateExpander.cpp +++ b/llvm/utils/TableGen/PredicateExpander.cpp @@ -22,14 +22,14 @@ void PredicateExpander::expandFalse(formatted_raw_ostream &OS) {  void PredicateExpander::expandCheckImmOperand(formatted_raw_ostream &OS,                                                int OpIndex, int ImmVal) { -  OS << "MI.getOperand(" << OpIndex << ").getImm() " -     << (shouldNegate() ? "!= " : "== ") << ImmVal; +  OS << "MI" << (isByRef() ? "." : "->") << "getOperand(" << OpIndex +     << ").getImm() " << (shouldNegate() ? "!= " : "== ") << ImmVal;  }  void PredicateExpander::expandCheckImmOperand(formatted_raw_ostream &OS,                                                int OpIndex, StringRef ImmVal) { -  OS << "MI.getOperand(" << OpIndex << ").getImm() " -     << (shouldNegate() ? "!= " : "== ") << ImmVal; +  OS << "MI" << (isByRef() ? "." : "->") << "getOperand(" << OpIndex +     << ").getImm() " << (shouldNegate() ? "!= " : "== ") << ImmVal;  }  void PredicateExpander::expandCheckRegOperand(formatted_raw_ostream &OS,  | 

