diff options
author | Bill Wendling <isanbard@gmail.com> | 2009-05-08 20:38:02 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2009-05-08 20:38:02 +0000 |
commit | a9519579b7134343b9b9520f8b1862baf8d872d5 (patch) | |
tree | e737119afffaaad8de2908ca635383abded02997 /lib/CodeGen/AsmPrinter/DwarfWriter.cpp | |
parent | e810b0d430d989545094cfd080fcd8038f9b31a3 (diff) |
Minor clean ups. No functionality change.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@71256 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/AsmPrinter/DwarfWriter.cpp')
-rw-r--r-- | lib/CodeGen/AsmPrinter/DwarfWriter.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/lib/CodeGen/AsmPrinter/DwarfWriter.cpp b/lib/CodeGen/AsmPrinter/DwarfWriter.cpp index cb53168b41..1739ec9d2a 100644 --- a/lib/CodeGen/AsmPrinter/DwarfWriter.cpp +++ b/lib/CodeGen/AsmPrinter/DwarfWriter.cpp @@ -224,7 +224,7 @@ protected: public: explicit DIE(unsigned Tag) - : Abbrev(Tag, DW_CHILDREN_no), Offset(0), Size(0), Children(), Values() {} + : Abbrev(Tag, DW_CHILDREN_no), Offset(0), Size(0) {} virtual ~DIE(); // Accessors. @@ -594,6 +594,7 @@ class DIEntry : public DIEValue { public: explicit DIEntry(DIE *E) : DIEValue(isEntry), Entry(E) {} + DIE *getEntry() const { return Entry; } void setEntry(DIE *E) { Entry = E; } // Implement isa/cast/dyncast. @@ -1116,7 +1117,7 @@ class DbgScope { SmallVector<DbgVariable *, 8> Variables;// Variables declared in scope. public: DbgScope(DbgScope *P, DIDescriptor D) - : Parent(P), Desc(D), StartLabelID(0), EndLabelID(0), Scopes(), Variables() + : Parent(P), Desc(D), StartLabelID(0), EndLabelID(0) {} virtual ~DbgScope() { for (unsigned i = 0, N = Scopes.size(); i < N; ++i) delete Scopes[i]; @@ -2211,7 +2212,6 @@ private: // with their unmangled counterparts. See PR2885. Don't do this assert. assert(0 && "Couldn't find DIE for machine function!"); #endif - return; } /// EmitInitial - Emit initial Dwarf declarations. This is necessary for cc @@ -2302,9 +2302,8 @@ private: if (Abbrev->getChildrenFlag() == DW_CHILDREN_yes) { const std::vector<DIE *> &Children = Die->getChildren(); - for (unsigned j = 0, M = Children.size(); j < M; ++j) { + for (unsigned j = 0, M = Children.size(); j < M; ++j) EmitDIE(Children[j]); - } Asm->EmitInt8(0); Asm->EOL("End Of Children Mark"); } |