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