forked from OSchip/llvm-project
Remove redundant bouncing between StringRef and a pair of 'const char *'.
llvm-svn: 242562
This commit is contained in:
parent
7f54753180
commit
a8d5b6ad45
|
@ -1755,10 +1755,7 @@ public:
|
|||
/// declarations with this name are visible from translation unit scope, their
|
||||
/// declarations will be deserialized and introduced into the declaration
|
||||
/// chain of the identifier.
|
||||
virtual IdentifierInfo *get(const char *NameStart, const char *NameEnd);
|
||||
IdentifierInfo *get(StringRef Name) override {
|
||||
return get(Name.begin(), Name.end());
|
||||
}
|
||||
IdentifierInfo *get(StringRef Name) override;
|
||||
|
||||
/// \brief Retrieve an iterator into the set of all identifiers
|
||||
/// in all loaded AST files.
|
||||
|
|
|
@ -6824,10 +6824,9 @@ void ASTReader::UpdateSema() {
|
|||
SemaObj->ActOnPragmaOptimize(/* IsOn = */ false, OptimizeOffPragmaLocation);
|
||||
}
|
||||
|
||||
IdentifierInfo* ASTReader::get(const char *NameStart, const char *NameEnd) {
|
||||
IdentifierInfo *ASTReader::get(StringRef Name) {
|
||||
// Note that we are loading an identifier.
|
||||
Deserializing AnIdentifier(this);
|
||||
StringRef Name(NameStart, NameEnd - NameStart);
|
||||
|
||||
// If there is a global index, look there first to determine which modules
|
||||
// provably do not have any results for this identifier.
|
||||
|
|
Loading…
Reference in New Issue