struct MMap {
uint64_t Addr;
uint64_t Size;
- const Module *Module;
+ const Module *Mod;
std::string Mode; // Lowercase
uint64_t ModuleRelativeAddr;
// An informational module line currently being constructed. As many mmap
// elements as possible are folded into one ModuleInfo line.
struct ModuleInfoLine {
- const Module *Module;
+ const Module *Mod;
SmallVector<const MMap *> MMaps = {};
};
if (const MMap *M = overlappingMMap(*ParsedMMap)) {
WithColor::error(errs())
- << formatv("overlapping mmap: #{0:x} [{1:x},{2:x})\n", M->Module->ID,
+ << formatv("overlapping mmap: #{0:x} [{1:x},{2:x})\n", M->Mod->ID,
M->Addr, M->Addr + M->Size);
reportLocation(Node.Fields[0].begin());
return true;
assert(Res.second && "Overlap check should ensure emplace succeeds.");
MMap &MMap = Res.first->second;
- if (!MIL || MIL->Module != MMap.Module) {
+ if (!MIL || MIL->Mod != MMap.Mod) {
endAnyModuleInfoLine();
for (const MarkupNode &Node : DeferredNodes)
filterNode(Node);
- beginModuleInfoLine(MMap.Module);
+ beginModuleInfoLine(MMap.Mod);
OS << "; adds";
}
MIL->MMaps.push_back(&MMap);