зеркало из https://github.com/microsoft/clang-1.git
StringMap::first() is about to start returning a StringRef, adapt.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@135166 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Родитель
8dd55a3c3b
Коммит
1e5f83ba51
|
@ -3055,7 +3055,8 @@ TargetInfo *TargetInfo::CreateTargetInfo(Diagnostic &Diags,
|
|||
Opts.Features.clear();
|
||||
for (llvm::StringMap<bool>::const_iterator it = Features.begin(),
|
||||
ie = Features.end(); it != ie; ++it)
|
||||
Opts.Features.push_back(std::string(it->second ? "+" : "-") + it->first());
|
||||
Opts.Features.push_back(std::string(it->second ? "+" : "-") +
|
||||
llvm::StringRef(it->first()).str());
|
||||
Target->HandleTargetFeatures(Opts.Features);
|
||||
|
||||
return Target.take();
|
||||
|
|
|
@ -1174,8 +1174,8 @@ void ASTWriter::WriteStatCache(MemorizeStatCalls &StatCalls) {
|
|||
for (MemorizeStatCalls::iterator Stat = StatCalls.begin(),
|
||||
StatEnd = StatCalls.end();
|
||||
Stat != StatEnd; ++Stat, ++NumStatEntries) {
|
||||
const char *Filename = Stat->first();
|
||||
Generator.insert(Filename, Stat->second);
|
||||
llvm::StringRef Filename = Stat->first();
|
||||
Generator.insert(Filename.data(), Stat->second);
|
||||
}
|
||||
|
||||
// Create the on-disk hash table in a buffer.
|
||||
|
|
Загрузка…
Ссылка в новой задаче