diff options
author | Bill Wendling <isanbard@gmail.com> | 2009-05-20 23:31:45 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2009-05-20 23:31:45 +0000 |
commit | 8658bb565d1952c6b9531bc6bfa81238daadb0c4 (patch) | |
tree | 3408b8e7fab135d9b06f2eab6f6172e394f6880f /llvm/lib | |
parent | 744668d5af52943c9499bbcde358b59fe937792f (diff) | |
download | bcm5719-llvm-8658bb565d1952c6b9531bc6bfa81238daadb0c4.tar.gz bcm5719-llvm-8658bb565d1952c6b9531bc6bfa81238daadb0c4.zip |
Minor code cleanup. No functionality change.
llvm-svn: 72198
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp | 25 |
1 files changed, 7 insertions, 18 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp index bdbb98885cc..25217b08809 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp @@ -67,36 +67,25 @@ class VISIBILITY_HIDDEN CompileUnit { FoldingSet<DIE> DiesSet; public: CompileUnit(unsigned I, DIE *D) - : ID(I), Die(D), GVToDieMap(), - GVToDIEEntryMap(), Globals(), DiesSet(InitDiesSetSize) - {} - - ~CompileUnit() { - delete Die; - } + : ID(I), Die(D), DiesSet(InitDiesSetSize) {} + ~CompileUnit() { delete Die; } // Accessors. - unsigned getID() const { return ID; } - DIE* getDie() const { return Die; } + unsigned getID() const { return ID; } + DIE* getDie() const { return Die; } StringMap<DIE*> &getGlobals() { return Globals; } /// hasContent - Return true if this compile unit has something to write out. /// - bool hasContent() const { - return !Die->getChildren().empty(); - } + bool hasContent() const { return !Die->getChildren().empty(); } /// AddGlobal - Add a new global entity to the compile unit. /// - void AddGlobal(const std::string &Name, DIE *Die) { - Globals[Name] = Die; - } + void AddGlobal(const std::string &Name, DIE *Die) { Globals[Name] = Die; } /// getDieMapSlotFor - Returns the debug information entry map slot for the /// specified debug variable. - DIE *&getDieMapSlotFor(GlobalVariable *GV) { - return GVToDieMap[GV]; - } + DIE *&getDieMapSlotFor(GlobalVariable *GV) { return GVToDieMap[GV]; } /// getDIEEntrySlotFor - Returns the debug information entry proxy slot for the /// specified debug variable. |