mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-01 00:33:09 +00:00
Remove StringRef->std::string->StringRef conversions.
As StringInit::get() accepts StringRef there is no need to construct a std::string out of the StringRef input and then construct a new StringRef from the std::string. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@232551 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
887a867862
commit
7fa3dea12d
@ -1477,7 +1477,7 @@ public:
|
||||
return false;
|
||||
}
|
||||
bool isTemplateArg(StringRef Name) const {
|
||||
return isTemplateArg(StringInit::get(Name.str()));
|
||||
return isTemplateArg(StringInit::get(Name));
|
||||
}
|
||||
|
||||
const RecordVal *getValue(const Init *Name) const {
|
||||
@ -1502,7 +1502,7 @@ public:
|
||||
TemplateArgs.push_back(Name);
|
||||
}
|
||||
void addTemplateArg(StringRef Name) {
|
||||
addTemplateArg(StringInit::get(Name.str()));
|
||||
addTemplateArg(StringInit::get(Name));
|
||||
}
|
||||
|
||||
void addValue(const RecordVal &RV) {
|
||||
@ -1527,7 +1527,7 @@ public:
|
||||
}
|
||||
|
||||
void removeValue(StringRef Name) {
|
||||
removeValue(StringInit::get(Name.str()));
|
||||
removeValue(StringInit::get(Name));
|
||||
}
|
||||
|
||||
bool isSubClassOf(const Record *R) const {
|
||||
|
Loading…
Reference in New Issue
Block a user