/// dwarfgen::Generator implementation.
//===----------------------------------------------------------------------===//
-dwarfgen::Generator::Generator() : Abbreviations(Allocator) {}
+dwarfgen::Generator::Generator()
+ : MAB(nullptr), MCE(nullptr), MS(nullptr), StringPool(nullptr),
+ Abbreviations(Allocator) {}
dwarfgen::Generator::~Generator() = default;
llvm::Expected<std::unique_ptr<dwarfgen::Generator>>
MC->setDwarfVersion(Version);
Asm->setDwarfVersion(Version);
- StringPool.reset(new DwarfStringPool(Allocator, *Asm, StringRef()));
+ StringPool = new DwarfStringPool(Allocator, *Asm, StringRef());
return Error::success();
}
MCStreamer *MS; // Owned by AsmPrinter
std::unique_ptr<TargetMachine> TM;
std::unique_ptr<AsmPrinter> Asm;
- std::unique_ptr<DwarfStringPool> StringPool;
+ DwarfStringPool *StringPool; // Owned by Allocator
std::vector<std::unique_ptr<CompileUnit>> CompileUnits;
BumpPtrAllocator Allocator;
DIEAbbrevSet Abbreviations;