summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2009-01-23 19:13:31 +0000
committerDevang Patel <dpatel@apple.com>2009-01-23 19:13:31 +0000
commitdd7aa3789576b484e3ae7e5fd0ba53984b5ce000 (patch)
tree898e3409ead3a2703c4d336868b1c19812ec0557
parent1275e28dede2fda98c46c1c85892f893af451d01 (diff)
downloadbcm5719-llvm-dd7aa3789576b484e3ae7e5fd0ba53984b5ce000.tar.gz
bcm5719-llvm-dd7aa3789576b484e3ae7e5fd0ba53984b5ce000.zip
Empty DIType represents void. In this case no need to construct any type DIE.
llvm-svn: 62861
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/DwarfWriter.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfWriter.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfWriter.cpp
index fd59533eeff..6bbb5bb9b76 100644
--- a/llvm/lib/CodeGen/AsmPrinter/DwarfWriter.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter/DwarfWriter.cpp
@@ -1662,10 +1662,8 @@ private:
/// AddType - Add a new type attribute to the specified entity.
void AddType(CompileUnit *DW_Unit, DIE *Entity, DIType Ty) {
- if (Ty.isNull()) {
- AddBasicType(Entity, DW_Unit, "", DW_ATE_signed, sizeof(int32_t));
+ if (Ty.isNull())
return;
- }
// Check for pre-existence.
DIEntry *&Slot = DW_Unit->getDIEntrySlotFor(Ty.getGV());
OpenPOWER on IntegriCloud