mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 11:13:28 +01:00
Make TreePattern::error use Twine
The underlying error function already uses a Twine, and most of the uses build up strings. llvm-svn: 221740
This commit is contained in:
parent
96d5147e3f
commit
f24b2619a2
@ -1908,7 +1908,7 @@ TreePattern::TreePattern(Record *TheRec, TreePatternNode *Pat, bool isInput,
|
||||
Trees.push_back(Pat);
|
||||
}
|
||||
|
||||
void TreePattern::error(const std::string &Msg) {
|
||||
void TreePattern::error(const Twine &Msg) {
|
||||
if (HasError)
|
||||
return;
|
||||
dump();
|
||||
|
@ -597,7 +597,7 @@ public:
|
||||
|
||||
/// error - If this is the first error in the current resolution step,
|
||||
/// print it and set the error flag. Otherwise, continue silently.
|
||||
void error(const std::string &Msg);
|
||||
void error(const Twine &Msg);
|
||||
bool hasError() const {
|
||||
return HasError;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user