mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 18:54:02 +01:00
Rename ModuleSummaryIndex::modPathStringEntries() into modulePaths()
It now return the map instead of an iterator. From: Mehdi Amini <mehdi.amini@apple.com> llvm-svn: 264489
This commit is contained in:
parent
5a858ce8f1
commit
98694d9951
@ -304,13 +304,14 @@ public:
|
||||
GlobalValueMap[ValueGUID].push_back(std::move(Info));
|
||||
}
|
||||
|
||||
/// Iterator to allow writer to walk through table during emission.
|
||||
iterator_range<StringMap<uint64_t>::const_iterator>
|
||||
modPathStringEntries() const {
|
||||
return llvm::make_range(ModulePathStringTable.begin(),
|
||||
ModulePathStringTable.end());
|
||||
/// Table of modules, containing an id.
|
||||
const StringMap<uint64_t> &modulePaths() const {
|
||||
return ModulePathStringTable;
|
||||
}
|
||||
|
||||
/// Table of modules, containing an id.
|
||||
StringMap<uint64_t> &modulePaths() { return ModulePathStringTable; }
|
||||
|
||||
/// Get the module ID recorded for the given module path.
|
||||
uint64_t getModuleId(const StringRef ModPath) const {
|
||||
return ModulePathStringTable.lookup(ModPath);
|
||||
|
@ -2827,7 +2827,7 @@ static void WriteModStrings(const ModuleSummaryIndex &I,
|
||||
unsigned Abbrev6Bit = Stream.EmitAbbrev(Abbv);
|
||||
|
||||
SmallVector<unsigned, 64> NameVals;
|
||||
for (const StringMapEntry<uint64_t> &MPSE : I.modPathStringEntries()) {
|
||||
for (const StringMapEntry<uint64_t> &MPSE : I.modulePaths()) {
|
||||
StringEncoding Bits =
|
||||
getStringEncoding(MPSE.getKey().data(), MPSE.getKey().size());
|
||||
unsigned AbbrevToUse = Abbrev8Bit;
|
||||
|
@ -281,7 +281,7 @@ std::vector<std::unique_ptr<MemoryBuffer>>
|
||||
loadAllFilesForIndex(const ModuleSummaryIndex &Index) {
|
||||
std::vector<std::unique_ptr<MemoryBuffer>> InputBuffers;
|
||||
|
||||
for (auto &ModPath : Index.modPathStringEntries()) {
|
||||
for (auto &ModPath : Index.modulePaths()) {
|
||||
const auto &Filename = ModPath.first();
|
||||
auto CurrentActivity = "loading file '" + Filename + "'";
|
||||
auto InputOrErr = MemoryBuffer::getFile(Filename);
|
||||
|
Loading…
Reference in New Issue
Block a user