diff options
Diffstat (limited to 'include/llvm/MC/MCDisassembler/MCDisassembler.h')
-rw-r--r-- | include/llvm/MC/MCDisassembler/MCDisassembler.h | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/include/llvm/MC/MCDisassembler/MCDisassembler.h b/include/llvm/MC/MCDisassembler/MCDisassembler.h index 9006d87abb43..5e626f186986 100644 --- a/include/llvm/MC/MCDisassembler/MCDisassembler.h +++ b/include/llvm/MC/MCDisassembler/MCDisassembler.h @@ -1,4 +1,4 @@ -//===-- llvm/MC/MCDisassembler.h - Disassembler interface -------*- C++ -*-===// +//===- llvm/MC/MCDisassembler.h - Disassembler interface --------*- C++ -*-===// // // The LLVM Compiler Infrastructure // @@ -6,20 +6,21 @@ // License. See LICENSE.TXT for details. // //===----------------------------------------------------------------------===// + #ifndef LLVM_MC_MCDISASSEMBLER_MCDISASSEMBLER_H #define LLVM_MC_MCDISASSEMBLER_MCDISASSEMBLER_H -#include "llvm-c/Disassembler.h" #include "llvm/MC/MCDisassembler/MCSymbolizer.h" -#include "llvm/Support/DataTypes.h" +#include <cstdint> +#include <memory> namespace llvm { template <typename T> class ArrayRef; +class MCContext; class MCInst; class MCSubtargetInfo; class raw_ostream; -class MCContext; /// Superclass for all disassemblers. Consumes a memory region and provides an /// array of assembly instructions. @@ -54,7 +55,7 @@ public: }; MCDisassembler(const MCSubtargetInfo &STI, MCContext &Ctx) - : Ctx(Ctx), STI(STI), Symbolizer(), CommentStream(nullptr) {} + : Ctx(Ctx), STI(STI) {} virtual ~MCDisassembler(); @@ -105,9 +106,9 @@ public: // Marked mutable because we cache it inside the disassembler, rather than // having to pass it around as an argument through all the autogenerated code. - mutable raw_ostream *CommentStream; + mutable raw_ostream *CommentStream = nullptr; }; -} // namespace llvm +} // end namespace llvm -#endif +#endif // LLVM_MC_MCDISASSEMBLER_MCDISASSEMBLER_H |