[llvm-commits] CVS: llvm/lib/CodeGen/DwarfWriter.cpp

Jim Laskey jlaskey at apple.com
Tue Oct 3 18:43:27 PDT 2006



Changes in directory llvm/lib/CodeGen:

DwarfWriter.cpp updated: 1.76 -> 1.77
---
Log message:

Work around for some problems with templates.

---
Diffs of the changes:  (+6 -0)

 DwarfWriter.cpp |    6 ++++++
 1 files changed, 6 insertions(+)


Index: llvm/lib/CodeGen/DwarfWriter.cpp
diff -u llvm/lib/CodeGen/DwarfWriter.cpp:1.76 llvm/lib/CodeGen/DwarfWriter.cpp:1.77
--- llvm/lib/CodeGen/DwarfWriter.cpp:1.76	Mon Sep 18 09:47:26 2006
+++ llvm/lib/CodeGen/DwarfWriter.cpp	Tue Oct  3 20:43:13 2006
@@ -1526,6 +1526,12 @@
     }
     default: break;
     }
+  } else if (SubprogramDesc *SubprogramTy = dyn_cast<SubprogramDesc>(TyDesc)) {
+    Slot =  Ty = new DIE(DW_TAG_pointer_type);
+    Ty->AddUInt(DW_AT_byte_size, 0, TAI->getAddressSize());
+    Ty->AddString(DW_AT_name, DW_FORM_string, SubprogramTy->getName());
+    Context->AddChild(Ty);
+    return Slot;
   }
   
   assert(Ty && "Type not supported yet");






More information about the llvm-commits mailing list