[llvm-commits] [llvm] r72198 - /llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
Bill Wendling
isanbard at gmail.com
Wed May 20 16:31:55 PDT 2009
Author: void
Date: Wed May 20 18:31:45 2009
New Revision: 72198
URL: http://llvm.org/viewvc/llvm-project?rev=72198&view=rev
Log:
Minor code cleanup. No functionality change.
Modified:
llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
Modified: llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp?rev=72198&r1=72197&r2=72198&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp (original)
+++ llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp Wed May 20 18:31:45 2009
@@ -67,36 +67,25 @@
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.
More information about the llvm-commits
mailing list