[DebugInfo] support for DW_AT_data_location in llvm
This patch adds support for DWARF attribute DW_AT_data_location. Summary: Dynamic arrays in fortran are described by array descriptor and data allocation address. Former is mapped to DW_AT_location and later is mapped to DW_AT_data_location. Testing: unit test cases added (hand-written) check llvm check debug-info Reviewed By: aprantl Differential Revision: https://reviews.llvm.org/D79592
This commit is contained in:
committed by
Sourabh Singh Tomar
parent
a2545c3499
commit
4042ada1c1
@@ -1627,6 +1627,7 @@ void ModuleBitcodeWriter::writeDICompositeType(
|
||||
Record.push_back(VE.getMetadataOrNullID(N->getTemplateParams().get()));
|
||||
Record.push_back(VE.getMetadataOrNullID(N->getRawIdentifier()));
|
||||
Record.push_back(VE.getMetadataOrNullID(N->getDiscriminator()));
|
||||
Record.push_back(VE.getMetadataOrNullID(N->getRawDataLocation()));
|
||||
|
||||
Stream.EmitRecord(bitc::METADATA_COMPOSITE_TYPE, Record, Abbrev);
|
||||
Record.clear();
|
||||
|
||||
Reference in New Issue
Block a user