mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-23 14:25:07 +00:00
Use unique_ptr to manage ownership of GCFunctionInfos in GCStrategy
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@206249 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -54,7 +54,7 @@ namespace llvm {
|
||||
/// be abstractly described.
|
||||
class GCStrategy {
|
||||
public:
|
||||
typedef std::vector<GCFunctionInfo*> list_type;
|
||||
typedef std::vector<std::unique_ptr<GCFunctionInfo>> list_type;
|
||||
typedef list_type::iterator iterator;
|
||||
|
||||
private:
|
||||
@@ -77,7 +77,7 @@ namespace llvm {
|
||||
public:
|
||||
GCStrategy();
|
||||
|
||||
virtual ~GCStrategy();
|
||||
virtual ~GCStrategy() {}
|
||||
|
||||
|
||||
/// getName - The name of the GC strategy, for debugging.
|
||||
|
Reference in New Issue
Block a user