[llvm-commits] [llvm] r63206 - /llvm/branches/release_25/lib/CodeGen/AsmPrinter/DwarfWriter.cpp
Tanya Lattner
tonic at nondot.org
Wed Jan 28 07:41:45 PST 2009
Author: tbrethou
Date: Wed Jan 28 09:41:45 2009
New Revision: 63206
URL: http://llvm.org/viewvc/llvm-project?rev=63206&view=rev
Log:
Merge from mainline.
Empty DIType represents void. In this case no need to construct any type DIE.
Modified:
llvm/branches/release_25/lib/CodeGen/AsmPrinter/DwarfWriter.cpp
Modified: llvm/branches/release_25/lib/CodeGen/AsmPrinter/DwarfWriter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/release_25/lib/CodeGen/AsmPrinter/DwarfWriter.cpp?rev=63206&r1=63205&r2=63206&view=diff
==============================================================================
--- llvm/branches/release_25/lib/CodeGen/AsmPrinter/DwarfWriter.cpp (original)
+++ llvm/branches/release_25/lib/CodeGen/AsmPrinter/DwarfWriter.cpp Wed Jan 28 09:41:45 2009
@@ -1662,10 +1662,8 @@
/// 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());
More information about the llvm-commits
mailing list