diff options
author | Alexey Samsonov <samsonov@google.com> | 2014-04-28 22:52:24 +0000 |
---|---|---|
committer | Alexey Samsonov <samsonov@google.com> | 2014-04-28 22:52:24 +0000 |
commit | 2f9c1f2f1705f293b679af62876112d4b77bb9aa (patch) | |
tree | 91c9e68bfc5195e0c6bc84bbffe63fea99c067f8 /lib/DebugInfo/DWARFDebugFrame.h | |
parent | d200f074f518bc5a5192a887add1dc0b7816cb8a (diff) | |
download | llvm-2f9c1f2f1705f293b679af62876112d4b77bb9aa.tar.gz llvm-2f9c1f2f1705f293b679af62876112d4b77bb9aa.tar.bz2 llvm-2f9c1f2f1705f293b679af62876112d4b77bb9aa.tar.xz |
[DWARF parser] DWARFDebugFrame: use unique_ptr instead of raw pointer
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207459 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/DebugInfo/DWARFDebugFrame.h')
-rw-r--r-- | lib/DebugInfo/DWARFDebugFrame.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/DebugInfo/DWARFDebugFrame.h b/lib/DebugInfo/DWARFDebugFrame.h index 7683849b4a..bd4ef45e4c 100644 --- a/lib/DebugInfo/DWARFDebugFrame.h +++ b/lib/DebugInfo/DWARFDebugFrame.h @@ -12,14 +12,13 @@ #include "llvm/Support/DataExtractor.h" #include "llvm/Support/raw_ostream.h" +#include <memory> #include <vector> - namespace llvm { class FrameEntry; - /// \brief A parsed .debug_frame section /// class DWARFDebugFrame { @@ -35,8 +34,7 @@ public: void parse(DataExtractor Data); private: - typedef std::vector<FrameEntry *> EntryVector; - EntryVector Entries; + std::vector<std::unique_ptr<FrameEntry>> Entries; }; |