forked from OSchip/llvm-project
parent
775cbd2b47
commit
d42b92f5c3
|
@ -647,8 +647,7 @@ DIE *CompileUnit::getOrCreateTypeDIE(const MDNode *TyNode) {
|
|||
}
|
||||
|
||||
/// addType - Add a new type attribute to the specified entity.
|
||||
void CompileUnit::addType(DIE *Entity, DIType Ty,
|
||||
unsigned Attribute) {
|
||||
void CompileUnit::addType(DIE *Entity, DIType Ty, unsigned Attribute) {
|
||||
if (!Ty.Verify())
|
||||
return;
|
||||
|
||||
|
@ -1242,7 +1241,8 @@ void CompileUnit::createGlobalVariableDIE(const MDNode *N) {
|
|||
}
|
||||
|
||||
/// constructSubrangeDIE - Construct subrange DIE from DISubrange.
|
||||
void CompileUnit::constructSubrangeDIE(DIE &Buffer, DISubrange SR, DIE *IndexTy){
|
||||
void CompileUnit::constructSubrangeDIE(DIE &Buffer, DISubrange SR,
|
||||
DIE *IndexTy) {
|
||||
DIE *DW_Subrange = new DIE(dwarf::DW_TAG_subrange_type);
|
||||
addDIEEntry(DW_Subrange, dwarf::DW_AT_type, dwarf::DW_FORM_ref4, IndexTy);
|
||||
uint64_t L = SR.getLo();
|
||||
|
|
Loading…
Reference in New Issue