diff options
Diffstat (limited to 'include/llvm/TableGen')
-rw-r--r-- | include/llvm/TableGen/Error.h | 2 | ||||
-rw-r--r-- | include/llvm/TableGen/Record.h | 2 | ||||
-rw-r--r-- | include/llvm/TableGen/StringMatcher.h | 7 |
3 files changed, 7 insertions, 4 deletions
diff --git a/include/llvm/TableGen/Error.h b/include/llvm/TableGen/Error.h index 3df658df8809a..de4d3bf547823 100644 --- a/include/llvm/TableGen/Error.h +++ b/include/llvm/TableGen/Error.h @@ -19,6 +19,8 @@ namespace llvm { +void PrintNote(ArrayRef<SMLoc> NoteLoc, const Twine &Msg); + void PrintWarning(ArrayRef<SMLoc> WarningLoc, const Twine &Msg); void PrintWarning(const char *Loc, const Twine &Msg); void PrintWarning(const Twine &Msg); diff --git a/include/llvm/TableGen/Record.h b/include/llvm/TableGen/Record.h index fa9ca285bcde9..55b4dfe2fa2f6 100644 --- a/include/llvm/TableGen/Record.h +++ b/include/llvm/TableGen/Record.h @@ -1638,7 +1638,7 @@ struct LessRecordRegister { if (LHSNumParts != RHSNumParts) return LHSNumParts < RHSNumParts; - // We expect the registers to be of the form [_a-zA-z]+([0-9]*[_a-zA-Z]*)*. + // We expect the registers to be of the form [_a-zA-Z]+([0-9]*[_a-zA-Z]*)*. for (size_t I = 0, E = LHSNumParts; I < E; I+=2) { std::pair<bool, StringRef> LHSPart = LHSParts.getPart(I); std::pair<bool, StringRef> RHSPart = RHSParts.getPart(I); diff --git a/include/llvm/TableGen/StringMatcher.h b/include/llvm/TableGen/StringMatcher.h index 7c919ffec7b61..09d2092d43b07 100644 --- a/include/llvm/TableGen/StringMatcher.h +++ b/include/llvm/TableGen/StringMatcher.h @@ -43,11 +43,12 @@ public: const std::vector<StringPair> &matches, raw_ostream &os) : StrVariableName(strVariableName), Matches(matches), OS(os) {} - void Emit(unsigned Indent = 0) const; + void Emit(unsigned Indent = 0, bool IgnoreDuplicates = false) const; private: - bool EmitStringMatcherForChar(const std::vector<const StringPair*> &Matches, - unsigned CharNo, unsigned IndentCount) const; + bool EmitStringMatcherForChar(const std::vector<const StringPair *> &Matches, + unsigned CharNo, unsigned IndentCount, + bool IgnoreDuplicates) const; }; } // end namespace llvm |