llvm-6502/test/DebugInfo
Manman Ren bc66071baa Debug Info: Use identifier to reference DIType in base type field of
ptr_to_member.

We introduce a new class DITypeRef that represents a reference to a DIType.
It wraps around a Value*, which can be either an identifier in MDString
or an actual MDNode. The class has a helper function "resolve" that
finds the actual MDNode for a given DITypeRef.

We specialize getFieldAs to return a field that is a reference to a
DIType. To correctly access the base type field of ptr_to_member,
getClassType now calls getFieldAs<DITypeRef> to return a DITypeRef.

Also add a typedef for DITypeIdentifierMap and a helper
generateDITypeIdentifierMap in DebugInfo.h. In DwarfDebug.cpp, we keep
a DITypeIdentifierMap and call generateDITypeIdentifierMap to actually
populate the map.

Verifier is updated accordingly.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@190081 91177308-0d34-0410-b5e6-96231b3b80d8
2013-09-05 18:48:31 +00:00
..
AArch64 Debug Info: add an identifier field to DICompositeType. 2013-08-26 22:39:55 +00:00
Inputs
PowerPC
SystemZ Debug Info: add an identifier field to DICompositeType. 2013-08-26 22:39:55 +00:00
X86 Remove hack ensuring that darwin didn't produce dwarf > 3 for modules 2013-09-04 22:21:24 +00:00
2009-10-16-Phi.ll
2009-11-03-InsertExtractValue.ll
2009-11-05-DeadGlobalVariable.ll Debug Info: add an identifier field to DICompositeType. 2013-08-26 22:39:55 +00:00
2009-11-06-NamelessGlobalVariable.ll
2009-11-10-CurrentFn.ll Debug Info: add an identifier field to DICompositeType. 2013-08-26 22:39:55 +00:00
2010-01-05-DbgScope.ll Debug Info: add an identifier field to DICompositeType. 2013-08-26 22:39:55 +00:00
2010-01-19-DbgScope.ll Debug Info: add an identifier field to DICompositeType. 2013-08-26 22:39:55 +00:00
2010-03-12-llc-crash.ll Debug Info: add an identifier field to DICompositeType. 2013-08-26 22:39:55 +00:00
2010-03-19-DbgDeclare.ll
2010-03-24-MemberFn.ll Debug Info: add an identifier field to DICompositeType. 2013-08-26 22:39:55 +00:00
2010-03-30-InvalidDbgInfoCrash.ll Debug Info: add an identifier field to DICompositeType. 2013-08-26 22:39:55 +00:00
2010-04-06-NestedFnDbgInfo.ll Debug Info: add an identifier field to DICompositeType. 2013-08-26 22:39:55 +00:00
2010-04-19-FramePtr.ll Debug Info: add an identifier field to DICompositeType. 2013-08-26 22:39:55 +00:00
2010-05-03-DisableFramePtr.ll Debug Info: add an identifier field to DICompositeType. 2013-08-26 22:39:55 +00:00
2010-05-03-OriginDIE.ll Debug Info: add an identifier field to DICompositeType. 2013-08-26 22:39:55 +00:00
2010-05-10-MultipleCU.ll Debug Info: add an identifier field to DICompositeType. 2013-08-26 22:39:55 +00:00
2010-06-29-InlinedFnLocalVar.ll Debug Info: add an identifier field to DICompositeType. 2013-08-26 22:39:55 +00:00
2010-07-19-Crash.ll Debug Info: add an identifier field to DICompositeType. 2013-08-26 22:39:55 +00:00
2010-10-01-crash.ll
array.ll Debug Info: add an identifier field to DICompositeType. 2013-08-26 22:39:55 +00:00
bug_null_debuginfo.ll
debuglineinfo.test
dwarf-public-names.ll Treat the pubtypes section similarly to the pubnames section and emit 2013-08-26 23:24:35 +00:00
dwarfdump-debug-frame-simple.test
dwarfdump-debug-loc-simple.test
dwarfdump-dump-flags.test
dwarfdump-inlining.test
dwarfdump-pubnames.test
dwarfdump-test.test
dwarfdump-zlib.test
enum.ll Debug Info: add an identifier field to DICompositeType. 2013-08-26 22:39:55 +00:00
global.ll Debug Info: add an identifier field to DICompositeType. 2013-08-26 22:39:55 +00:00
inheritance.ll Debug Info: add an identifier field to DICompositeType. 2013-08-26 22:39:55 +00:00
inline-debug-info-multiret.ll Debug Info: add an identifier field to DICompositeType. 2013-08-26 22:39:55 +00:00
inline-debug-info.ll Debug Info: add an identifier field to DICompositeType. 2013-08-26 22:39:55 +00:00
inlined-arguments.ll Debug Info: add an identifier field to DICompositeType. 2013-08-26 22:39:55 +00:00
inlined-vars.ll Debug Info: add an identifier field to DICompositeType. 2013-08-26 22:39:55 +00:00
llvm-symbolizer.test
member-pointers.ll Debug Info: add an identifier field to DICompositeType. 2013-08-26 22:39:55 +00:00
namespace.ll Debug Info: add an identifier field to DICompositeType. 2013-08-26 22:39:55 +00:00
template-recursive-void.ll Debug Info: add an identifier field to DICompositeType. 2013-08-26 22:39:55 +00:00
tu-member-pointer.ll Debug Info: Use identifier to reference DIType in base type field of 2013-09-05 18:48:31 +00:00
two-cus-from-same-file.ll Debug Info: add an identifier field to DICompositeType. 2013-08-26 22:39:55 +00:00
version.ll Debug Info: add an identifier field to DICompositeType. 2013-08-26 22:39:55 +00:00