[llvm] 6605187 - [NFC] Fix compiler warning in MarkupFilter
Daniel Thornburgh via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 21 12:00:41 PDT 2022
Author: Daniel Thornburgh
Date: 2022-07-21T12:00:29-07:00
New Revision: 6605187103a2369418d014a7f146fee4a04b11bf
URL: https://github.com/llvm/llvm-project/commit/6605187103a2369418d014a7f146fee4a04b11bf
DIFF: https://github.com/llvm/llvm-project/commit/6605187103a2369418d014a7f146fee4a04b11bf.diff
LOG: [NFC] Fix compiler warning in MarkupFilter
Added:
Modified:
llvm/include/llvm/DebugInfo/Symbolize/MarkupFilter.h
llvm/lib/DebugInfo/Symbolize/MarkupFilter.cpp
Removed:
################################################################################
diff --git a/llvm/include/llvm/DebugInfo/Symbolize/MarkupFilter.h b/llvm/include/llvm/DebugInfo/Symbolize/MarkupFilter.h
index a224c3205f0bc..26686143af95b 100644
--- a/llvm/include/llvm/DebugInfo/Symbolize/MarkupFilter.h
+++ b/llvm/include/llvm/DebugInfo/Symbolize/MarkupFilter.h
@@ -52,7 +52,7 @@ class MarkupFilter {
struct MMap {
uint64_t Addr;
uint64_t Size;
- const Module *Module;
+ const Module *Mod;
std::string Mode; // Lowercase
uint64_t ModuleRelativeAddr;
@@ -62,7 +62,7 @@ class MarkupFilter {
// 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 = {};
};
diff --git a/llvm/lib/DebugInfo/Symbolize/MarkupFilter.cpp b/llvm/lib/DebugInfo/Symbolize/MarkupFilter.cpp
index ad21df62b9b36..ce42bbfa31300 100644
--- a/llvm/lib/DebugInfo/Symbolize/MarkupFilter.cpp
+++ b/llvm/lib/DebugInfo/Symbolize/MarkupFilter.cpp
@@ -96,7 +96,7 @@ bool MarkupFilter::tryMMap(const MarkupNode &Node,
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;
@@ -106,11 +106,11 @@ bool MarkupFilter::tryMMap(const MarkupNode &Node,
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);
More information about the llvm-commits
mailing list