aboutsummaryrefslogtreecommitdiffstats
path: root/lib/CodeGen
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
commit80303aade2b473004bde914db6c368a77af0f8a8 (patch)
treefadeb4fcfe49a8b8c8aebf3a4a2e1cc0fbefbd74 /lib/CodeGen
parenta90c8e690bd9103bb4a5d943f98279a55bf42ad1 (diff)
downloadexternal_llvm-80303aade2b473004bde914db6c368a77af0f8a8.zip
external_llvm-80303aade2b473004bde914db6c368a77af0f8a8.tar.gz
external_llvm-80303aade2b473004bde914db6c368a77af0f8a8.tar.bz2
Empty DIType represents void. In this case no need to construct any type DIE.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@62861 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen')
-rw-r--r--lib/CodeGen/AsmPrinter/DwarfWriter.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/CodeGen/AsmPrinter/DwarfWriter.cpp b/lib/CodeGen/AsmPrinter/DwarfWriter.cpp
index fd59533..6bbb5bb 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());