aboutsummaryrefslogtreecommitdiffstats
path: root/lib/CodeGen/AsmPrinter
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2009-05-20 23:31:45 +0000
committerBill Wendling <isanbard@gmail.com>2009-05-20 23:31:45 +0000
commit4ca8dfde22e09e0ce39c6625f3da3e3241911ae9 (patch)
treedc4fab8d555c8947bb830d5516d1a90a5b0676f9 /lib/CodeGen/AsmPrinter
parent065d8473bc3b511dd90e8f551d9ffe6a14dfd9e2 (diff)
downloadexternal_llvm-4ca8dfde22e09e0ce39c6625f3da3e3241911ae9.tar.gz
external_llvm-4ca8dfde22e09e0ce39c6625f3da3e3241911ae9.tar.bz2
external_llvm-4ca8dfde22e09e0ce39c6625f3da3e3241911ae9.zip
Minor code cleanup. No functionality change.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72198 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/AsmPrinter')
-rw-r--r--lib/CodeGen/AsmPrinter/DwarfDebug.cpp25
1 files changed, 7 insertions, 18 deletions
diff --git a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
index bdbb98885c..25217b0880 100644
--- a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
+++ b/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.