aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2009-01-20 18:13:03 +0000
committerDevang Patel <dpatel@apple.com>2009-01-20 18:13:03 +0000
commitce31b027e7891da951f1036465e8d82dd0bd3297 (patch)
tree37318de9e3aaa4af592d4a1c33db8089d0ad413b
parentde2bcb38b2894e9ee44062486b7eba479cc137df (diff)
Enable debug info for composite types.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@62589 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/llvm/Analysis/DebugInfo.h1
-rw-r--r--lib/CodeGen/AsmPrinter/DwarfWriter.cpp4
2 files changed, 1 insertions, 4 deletions
diff --git a/include/llvm/Analysis/DebugInfo.h b/include/llvm/Analysis/DebugInfo.h
index 1eaa69a04c..5ee8db6d16 100644
--- a/include/llvm/Analysis/DebugInfo.h
+++ b/include/llvm/Analysis/DebugInfo.h
@@ -118,6 +118,7 @@ namespace llvm {
std::string getFilename() const { return getStringField(3); }
std::string getDirectory() const { return getStringField(4); }
std::string getProducer() const { return getStringField(5); }
+
/// Verify - Verify that a compile unit is well formed.
bool Verify() const;
};
diff --git a/lib/CodeGen/AsmPrinter/DwarfWriter.cpp b/lib/CodeGen/AsmPrinter/DwarfWriter.cpp
index 65659aecc8..d3d2ded88f 100644
--- a/lib/CodeGen/AsmPrinter/DwarfWriter.cpp
+++ b/lib/CodeGen/AsmPrinter/DwarfWriter.cpp
@@ -1743,9 +1743,6 @@ private:
void ConstructTypeDIE(CompileUnit *DW_Unit, DIE &Buffer,
DICompositeType CTy) {
- /// FIXME - Enable this asap.
- return;
-
// Get core information.
const std::string &Name = CTy.getName();
uint64_t Size = CTy.getSizeInBits() >> 3;
@@ -1859,7 +1856,6 @@ private:
AddUInt(&Buffer, DW_AT_GNU_vector, DW_FORM_flag, 1);
DIArray Elements = CTy->getTypeArray();
- // FIXME - Enable this.
AddType(DW_Unit, &Buffer, CTy->getTypeDerivedFrom());
// Construct an anonymous type for index type.