[llvm] r305570 - [DWARF] Replaced mem-initializers with non-static data member initializers in DWARFVerifier class.
Spyridoula Gravani via llvm-commits
llvm-commits at lists.llvm.org
Fri Jun 16 11:55:01 PDT 2017
Author: sgravani
Date: Fri Jun 16 13:55:01 2017
New Revision: 305570
URL: http://llvm.org/viewvc/llvm-project?rev=305570&view=rev
Log:
[DWARF] Replaced mem-initializers with non-static data member initializers in DWARFVerifier class.
Modified:
llvm/trunk/include/llvm/DebugInfo/DWARF/DWARFVerifier.h
Modified: llvm/trunk/include/llvm/DebugInfo/DWARF/DWARFVerifier.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/DebugInfo/DWARF/DWARFVerifier.h?rev=305570&r1=305569&r2=305570&view=diff
==============================================================================
--- llvm/trunk/include/llvm/DebugInfo/DWARF/DWARFVerifier.h (original)
+++ llvm/trunk/include/llvm/DebugInfo/DWARF/DWARFVerifier.h Fri Jun 16 13:55:01 2017
@@ -30,9 +30,9 @@ class DWARFVerifier {
/// can verify each reference points to a valid DIE and not an offset that
/// lies between to valid DIEs.
std::map<uint64_t, std::set<uint32_t>> ReferenceToDIEOffsets;
- uint32_t NumDebugInfoErrors;
- uint32_t NumDebugLineErrors;
- uint32_t NumAppleNamesErrors;
+ uint32_t NumDebugInfoErrors = 0;
+ uint32_t NumDebugLineErrors = 0;
+ uint32_t NumAppleNamesErrors = 0;
/// Verifies the attribute's DWARF attribute and its value.
///
@@ -77,8 +77,7 @@ class DWARFVerifier {
public:
DWARFVerifier(raw_ostream &S, DWARFContext &D)
- : OS(S), DCtx(D), NumDebugInfoErrors(0), NumDebugLineErrors(0),
- NumAppleNamesErrors(0) {}
+ : OS(S), DCtx(D) {}
/// Verify the information in the .debug_info section.
///
/// Any errors are reported to the stream that was this object was
More information about the llvm-commits
mailing list