|
@@ -52,7 +52,6 @@ class CodeGenABITypes
|
|
public:
|
|
public:
|
|
CodeGenABITypes(ASTContext &C, llvm::Module &M,
|
|
CodeGenABITypes(ASTContext &C, llvm::Module &M,
|
|
CoverageSourceInfo *CoverageInfo = nullptr);
|
|
CoverageSourceInfo *CoverageInfo = nullptr);
|
|
- ~CodeGenABITypes();
|
|
|
|
|
|
|
|
/// These methods all forward to methods in the private implementation class
|
|
/// These methods all forward to methods in the private implementation class
|
|
/// CodeGenTypes.
|
|
/// CodeGenTypes.
|
|
@@ -75,12 +74,12 @@ private:
|
|
/// Default CodeGenOptions object used to initialize the
|
|
/// Default CodeGenOptions object used to initialize the
|
|
/// CodeGenModule and otherwise not used. More specifically, it is
|
|
/// CodeGenModule and otherwise not used. More specifically, it is
|
|
/// not used in ABI type generation, so none of the options matter.
|
|
/// not used in ABI type generation, so none of the options matter.
|
|
- CodeGenOptions *CGO;
|
|
|
|
- HeaderSearchOptions *HSO;
|
|
|
|
- PreprocessorOptions *PPO;
|
|
|
|
|
|
+ std::unique_ptr<CodeGenOptions> CGO;
|
|
|
|
+ std::unique_ptr<HeaderSearchOptions> HSO;
|
|
|
|
+ std::unique_ptr<PreprocessorOptions> PPO;
|
|
|
|
|
|
/// The CodeGenModule we use get to the CodeGenTypes object.
|
|
/// The CodeGenModule we use get to the CodeGenTypes object.
|
|
- CodeGen::CodeGenModule *CGM;
|
|
|
|
|
|
+ std::unique_ptr<CodeGen::CodeGenModule> CGM;
|
|
};
|
|
};
|
|
|
|
|
|
} // end namespace CodeGen
|
|
} // end namespace CodeGen
|