mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-15 05:24:01 +00:00
Make TreePattern::error use Twine
The underlying error function already uses a Twine, and most of the uses build up strings. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@221740 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -1908,7 +1908,7 @@ TreePattern::TreePattern(Record *TheRec, TreePatternNode *Pat, bool isInput,
|
|||||||
Trees.push_back(Pat);
|
Trees.push_back(Pat);
|
||||||
}
|
}
|
||||||
|
|
||||||
void TreePattern::error(const std::string &Msg) {
|
void TreePattern::error(const Twine &Msg) {
|
||||||
if (HasError)
|
if (HasError)
|
||||||
return;
|
return;
|
||||||
dump();
|
dump();
|
||||||
|
@ -597,7 +597,7 @@ public:
|
|||||||
|
|
||||||
/// error - If this is the first error in the current resolution step,
|
/// error - If this is the first error in the current resolution step,
|
||||||
/// print it and set the error flag. Otherwise, continue silently.
|
/// print it and set the error flag. Otherwise, continue silently.
|
||||||
void error(const std::string &Msg);
|
void error(const Twine &Msg);
|
||||||
bool hasError() const {
|
bool hasError() const {
|
||||||
return HasError;
|
return HasError;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user