mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-21 02:24:22 +00:00
Use unique_ptr to own MCFunctions within MCModule.
MCModule's ctor had to be moved out of line so the definition of MCFunction was available. (ctor requires the dtor of members (in case the ctor throws) which required access to the dtor of MCFunction) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@206244 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -73,7 +73,7 @@ class MCModule {
|
||||
|
||||
/// \name Function tracking
|
||||
/// @{
|
||||
typedef std::vector<MCFunction*> FunctionListTy;
|
||||
typedef std::vector<std::unique_ptr<MCFunction>> FunctionListTy;
|
||||
FunctionListTy Functions;
|
||||
/// @}
|
||||
|
||||
@ -87,7 +87,7 @@ class MCModule {
|
||||
friend class MCObjectDisassembler;
|
||||
|
||||
public:
|
||||
MCModule() : Entrypoint(0) { }
|
||||
MCModule();
|
||||
~MCModule();
|
||||
|
||||
/// \name Create a new MCAtom covering the specified offset range.
|
||||
|
Reference in New Issue
Block a user