summaryrefslogtreecommitdiff
path: root/include/llvm/CodeGen/DwarfWriter.h
diff options
context:
space:
mode:
authorJim Laskey <jlaskey@mac.com>2006-01-17 19:12:24 +0000
committerJim Laskey <jlaskey@mac.com>2006-01-17 19:12:24 +0000
commit0cbd242e339d7ca4356f3f54d79920b4f7a9f7b0 (patch)
tree81c204188fbc9848dbbf2ba6ac4d20fb774205c7 /include/llvm/CodeGen/DwarfWriter.h
parentf91e97ae81d0037effea5165e34915fe359fdc94 (diff)
downloadllvm-0cbd242e339d7ca4356f3f54d79920b4f7a9f7b0.tar.gz
llvm-0cbd242e339d7ca4356f3f54d79920b4f7a9f7b0.tar.bz2
llvm-0cbd242e339d7ca4356f3f54d79920b4f7a9f7b0.tar.xz
Misc. errors.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25399 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen/DwarfWriter.h')
-rw-r--r--include/llvm/CodeGen/DwarfWriter.h19
1 files changed, 12 insertions, 7 deletions
diff --git a/include/llvm/CodeGen/DwarfWriter.h b/include/llvm/CodeGen/DwarfWriter.h
index e178c91fbb..78b024c38b 100644
--- a/include/llvm/CodeGen/DwarfWriter.h
+++ b/include/llvm/CodeGen/DwarfWriter.h
@@ -17,15 +17,13 @@
//
//===----------------------------------------------------------------------===//
-#ifndef LLVM_CODEGEN_DWARFPRINTER_H
-#define LLVM_CODEGEN_DWARFPRINTER_H
+#ifndef LLVM_CODEGEN_DWARFWRITER_H
+#define LLVM_CODEGEN_DWARFWRITER_H
#include "llvm/ADT/UniqueVector.h"
#include <iosfwd>
-#include <map>
#include <string>
-#include <vector>
namespace llvm {
@@ -567,7 +565,7 @@ namespace llvm {
struct DIELabel : public DIEValue {
const DWLabel Value;
- DIELabel(const DWLabel &V) : DIEValue(DW_FORM_ref4), Value(V) {}
+ DIELabel(const DWLabel &V) : DIEValue(isLabel), Value(V) {}
// Implement isa/cast/dyncast.
static bool classof(const DWLabel *) { return true; }
@@ -590,7 +588,7 @@ namespace llvm {
const DWLabel Value2;
DIEDelta(const DWLabel &V1, const DWLabel &V2)
- : DIEValue(DW_FORM_addr), Value1(V1), Value2(V2) {}
+ : DIEValue(isDelta), Value1(V1), Value2(V2) {}
// Implement isa/cast/dyncast.
static bool classof(const DIEDelta *) { return true; }
@@ -624,7 +622,14 @@ namespace llvm {
, Children()
, Values()
{}
- virtual ~DIE() {
+ ~DIE() {
+ for (unsigned i = 0, N = Children.size(); i < N; i++) {
+ delete Children[i];
+ }
+
+ for (unsigned j = 0, M = Children.size(); j < M; j++) {
+ delete Children[j];
+ }
}
// Accessors