forked from OSchip/llvm-project
parent
9f88fe865c
commit
25e3509c78
|
@ -685,7 +685,7 @@ bool CompileUnit::addConstantValue(DIE *Die, const APInt &Val,
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// addTemplateParams - Add template parameters in buffer.
|
/// addTemplateParams - Add template parameters into buffer.
|
||||||
void CompileUnit::addTemplateParams(DIE &Buffer, DIArray TParams) {
|
void CompileUnit::addTemplateParams(DIE &Buffer, DIArray TParams) {
|
||||||
// Add template parameters.
|
// Add template parameters.
|
||||||
for (unsigned i = 0, e = TParams.getNumElements(); i != e; ++i) {
|
for (unsigned i = 0, e = TParams.getNumElements(); i != e; ++i) {
|
||||||
|
@ -707,7 +707,7 @@ DIE *CompileUnit::getOrCreateContextDIE(DIDescriptor Context) {
|
||||||
return getOrCreateNameSpace(DINameSpace(Context));
|
return getOrCreateNameSpace(DINameSpace(Context));
|
||||||
else if (Context.isSubprogram())
|
else if (Context.isSubprogram())
|
||||||
return getOrCreateSubprogramDIE(DISubprogram(Context));
|
return getOrCreateSubprogramDIE(DISubprogram(Context));
|
||||||
else
|
else
|
||||||
return getDIE(Context);
|
return getDIE(Context);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue