Partial enabling of functions.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26404 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Jim Laskey
2006-02-27 20:37:42 +00:00
parent a34544d96c
commit 8a8e9756c8

View File

@@ -1208,7 +1208,7 @@ DIE *DwarfWriter::NewSubprogram(SubprogramDesc *SPD) {
// FIXME - faking the type for the time being. // FIXME - faking the type for the time being.
DIE *Type = NewBasicType(Unit, Type::IntTy); DIE *Type = NewBasicType(Unit, Type::IntTy);
DIE *SubprogramDie = new DIE(DW_TAG_variable); DIE *SubprogramDie = new DIE(DW_TAG_subprogram);
SubprogramDie->AddString (DW_AT_name, DW_FORM_string, Name); SubprogramDie->AddString (DW_AT_name, DW_FORM_string, Name);
SubprogramDie->AddUInt (DW_AT_decl_file, 0, FileID); SubprogramDie->AddUInt (DW_AT_decl_file, 0, FileID);
SubprogramDie->AddUInt (DW_AT_decl_line, 0, Line); SubprogramDie->AddUInt (DW_AT_decl_line, 0, Line);