diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2017-04-16 16:01:22 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2017-04-16 16:01:22 +0000 |
commit | 71d5a2540a98c81f5bcaeb48805e0e2881f530ef (patch) | |
tree | 5343938942df402b49ec7300a1c25a2d4ccd5821 /include/llvm/MC/MCLinkerOptimizationHint.h | |
parent | 31bbf64f3a4974a2d6c8b3b27ad2f519caf74057 (diff) |
Diffstat (limited to 'include/llvm/MC/MCLinkerOptimizationHint.h')
-rw-r--r-- | include/llvm/MC/MCLinkerOptimizationHint.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/include/llvm/MC/MCLinkerOptimizationHint.h b/include/llvm/MC/MCLinkerOptimizationHint.h index 200bb93f64c8..0c3525bbeda6 100644 --- a/include/llvm/MC/MCLinkerOptimizationHint.h +++ b/include/llvm/MC/MCLinkerOptimizationHint.h @@ -21,13 +21,14 @@ #include "llvm/ADT/StringRef.h" #include "llvm/ADT/StringSwitch.h" #include "llvm/Support/raw_ostream.h" +#include <cassert> +#include <cstdint> namespace llvm { -// Forward declarations. +class MachObjectWriter; class MCAsmLayout; class MCSymbol; -class MachObjectWriter; /// Linker Optimization Hint Type. enum MCLOHType { @@ -133,7 +134,7 @@ public: class MCLOHContainer { /// Keep track of the emit size of all the LOHs. - mutable uint64_t EmitSize; + mutable uint64_t EmitSize = 0; /// Keep track of all LOH directives. SmallVector<MCLOHDirective, 32> Directives; @@ -141,7 +142,7 @@ class MCLOHContainer { public: typedef SmallVectorImpl<MCLOHDirective> LOHDirectives; - MCLOHContainer() : EmitSize(0) {} + MCLOHContainer() = default; /// Const accessor to the directives. const LOHDirectives &getDirectives() const { @@ -183,4 +184,4 @@ typedef MCLOHContainer::LOHDirectives MCLOHDirectives; } // end namespace llvm -#endif +#endif // LLVM_MC_MCLINKEROPTIMIZATIONHINT_H |