diff options
author | Tanya Lattner <tonic@nondot.org> | 2009-01-28 15:41:45 +0000 |
---|---|---|
committer | Tanya Lattner <tonic@nondot.org> | 2009-01-28 15:41:45 +0000 |
commit | 8cbc81075ec6d73f5a5fc6e36111f0fd9bbda75f (patch) | |
tree | 508a07e8d7aa547a4301ec822609b969cf72dc53 | |
parent | ceb139812d1fa0e493f4b8a8dff9081d64568132 (diff) |
Merge from mainline.
Empty DIType represents void. In this case no need to construct any type DIE.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_25@63206 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/CodeGen/AsmPrinter/DwarfWriter.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/CodeGen/AsmPrinter/DwarfWriter.cpp b/lib/CodeGen/AsmPrinter/DwarfWriter.cpp index fd59533eef..6bbb5bb9b7 100644 --- a/lib/CodeGen/AsmPrinter/DwarfWriter.cpp +++ b/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()); |