forked from OSchip/llvm-project
parent
31b0576b01
commit
d25f7fc4ae
|
@ -2167,8 +2167,8 @@ void DwarfUnits::emitUnits(DwarfDebug *DD,
|
||||||
unsigned DwarfUnits::getCUOffset(DIE *Die) {
|
unsigned DwarfUnits::getCUOffset(DIE *Die) {
|
||||||
assert(Die->getTag() == dwarf::DW_TAG_compile_unit &&
|
assert(Die->getTag() == dwarf::DW_TAG_compile_unit &&
|
||||||
"Input DIE should be compile unit in getCUOffset.");
|
"Input DIE should be compile unit in getCUOffset.");
|
||||||
for (SmallVectorImpl<CompileUnit *>::iterator I = CUs.begin(),
|
for (SmallVectorImpl<CompileUnit *>::iterator I = CUs.begin(), E = CUs.end();
|
||||||
E = CUs.end(); I != E; ++I) {
|
I != E; ++I) {
|
||||||
CompileUnit *TheCU = *I;
|
CompileUnit *TheCU = *I;
|
||||||
if (TheCU->getCUDie() == Die)
|
if (TheCU->getCUDie() == Die)
|
||||||
return TheCU->getDebugInfoOffset();
|
return TheCU->getDebugInfoOffset();
|
||||||
|
|
Loading…
Reference in New Issue