[llvm] 4c03207 - [DWARF] Hide state in an anonymous namespace. NFC.
Benjamin Kramer via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 10 06:48:27 PDT 2024
Author: Benjamin Kramer
Date: 2024-07-10T15:48:15+02:00
New Revision: 4c0320728e1b0cd590c00e06130a2af7160715b6
URL: https://github.com/llvm/llvm-project/commit/4c0320728e1b0cd590c00e06130a2af7160715b6
DIFF: https://github.com/llvm/llvm-project/commit/4c0320728e1b0cd590c00e06130a2af7160715b6.diff
LOG: [DWARF] Hide state in an anonymous namespace. NFC.
Added:
Modified:
llvm/lib/DebugInfo/DWARF/DWARFContext.cpp
Removed:
################################################################################
diff --git a/llvm/lib/DebugInfo/DWARF/DWARFContext.cpp b/llvm/lib/DebugInfo/DWARF/DWARFContext.cpp
index 207f081edf05a..f36399ed00a6e 100644
--- a/llvm/lib/DebugInfo/DWARF/DWARFContext.cpp
+++ b/llvm/lib/DebugInfo/DWARF/DWARFContext.cpp
@@ -247,6 +247,7 @@ DWARFContext::DWARFContextState::parseMacroOrMacinfo(MacroSecType SectionType) {
return Macro;
}
+namespace {
class ThreadUnsafeDWARFContextState : public DWARFContext::DWARFContextState {
DWARFUnitVector NormalUnits;
@@ -740,8 +741,7 @@ class ThreadSafeState : public ThreadUnsafeDWARFContextState {
return ThreadUnsafeDWARFContextState::getTypeUnitMap(IsDWO);
}
};
-
-
+} // namespace
DWARFContext::DWARFContext(std::unique_ptr<const DWARFObject> DObj,
std::string DWPName,
More information about the llvm-commits
mailing list