aboutsummaryrefslogtreecommitdiff
path: root/lib/DebugInfo/DWARFDebugFrame.h
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2014-11-24 09:08:18 +0000
committerDimitry Andric <dim@FreeBSD.org>2014-11-24 09:08:18 +0000
commit5ca98fd98791947eba83a1ed3f2c8191ef7afa6c (patch)
treef5944309621cee4fe0976be6f9ac619b7ebfc4c2 /lib/DebugInfo/DWARFDebugFrame.h
parent68bcb7db193e4bc81430063148253d30a791023e (diff)
Diffstat (limited to 'lib/DebugInfo/DWARFDebugFrame.h')
-rw-r--r--lib/DebugInfo/DWARFDebugFrame.h9
1 files changed, 3 insertions, 6 deletions
diff --git a/lib/DebugInfo/DWARFDebugFrame.h b/lib/DebugInfo/DWARFDebugFrame.h
index 48b8d63a5a64..bd4ef45e4cfe 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,12 +34,10 @@ public:
void parse(DataExtractor Data);
private:
- typedef std::vector<FrameEntry *> EntryVector;
- EntryVector Entries;
+ std::vector<std::unique_ptr<FrameEntry>> Entries;
};
} // namespace llvm
-#endif
-
+#endif