diff options
author | Jim Laskey <jlaskey@mac.com> | 2006-06-20 19:41:06 +0000 |
---|---|---|
committer | Jim Laskey <jlaskey@mac.com> | 2006-06-20 19:41:06 +0000 |
commit | 0a9e837b6fd0c5d0a1f0d55f1c2188a08894d51a (patch) | |
tree | d91ffc6a43f94f1e5458fd331855a8e50db9a803 /llvm/lib/CodeGen/MachineDebugInfo.cpp | |
parent | 9e7e4b5d859cb479100c6b02cc853799b15ae27c (diff) | |
download | bcm5719-llvm-0a9e837b6fd0c5d0a1f0d55f1c2188a08894d51a.tar.gz bcm5719-llvm-0a9e837b6fd0c5d0a1f0d55f1c2188a08894d51a.zip |
Add support for function types.
llvm-svn: 28874
Diffstat (limited to 'llvm/lib/CodeGen/MachineDebugInfo.cpp')
-rw-r--r-- | llvm/lib/CodeGen/MachineDebugInfo.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/MachineDebugInfo.cpp b/llvm/lib/CodeGen/MachineDebugInfo.cpp index 706beb8a8c3..c1aac50573a 100644 --- a/llvm/lib/CodeGen/MachineDebugInfo.cpp +++ b/llvm/lib/CodeGen/MachineDebugInfo.cpp @@ -493,7 +493,8 @@ DebugInfoDesc *DebugInfoDesc::DescFactory(unsigned Tag) { case DW_TAG_structure_type: case DW_TAG_union_type: case DW_TAG_enumeration_type: - case DW_TAG_vector_type: return new CompositeTypeDesc(Tag); + case DW_TAG_vector_type: + case DW_TAG_subroutine_type: return new CompositeTypeDesc(Tag); case DW_TAG_subrange_type: return new SubrangeDesc(); case DW_TAG_enumerator: return new EnumeratorDesc(); case DW_TAG_return_variable: @@ -831,6 +832,7 @@ bool CompositeTypeDesc::classof(const DebugInfoDesc *D) { case DW_TAG_union_type: case DW_TAG_enumeration_type: case DW_TAG_vector_type: + case DW_TAG_subroutine_type: return true; default: break; } |