diff options
| author | Devang Patel <dpatel@apple.com> | 2011-08-12 18:10:19 +0000 |
|---|---|---|
| committer | Devang Patel <dpatel@apple.com> | 2011-08-12 18:10:19 +0000 |
| commit | 444034783e91143300ba43050a25df2e220ac36d (patch) | |
| tree | be44abf7a9a8600f3a4883efe6bc65b72c45bb5d /llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp | |
| parent | 7bd6e6ebef400e39ee87a60713c3574175c7855a (diff) | |
| download | bcm5719-llvm-444034783e91143300ba43050a25df2e220ac36d.tar.gz bcm5719-llvm-444034783e91143300ba43050a25df2e220ac36d.zip | |
Use ArrayRef.
llvm-svn: 137485
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp')
| -rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp index 76dc43feae9..f5c762b18ea 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp @@ -1680,10 +1680,10 @@ void DwarfDebug::endFunction(const MachineFunction *MF) { collectVariableInfo(MF, ProcessedVars); // Construct abstract scopes. - SmallVector<LexicalScope *, 4> &AList = LScopes.getAbstractScopesList(); - for (SmallVector<LexicalScope *, 4>::iterator AI = AList.begin(), - AE = AList.end(); AI != AE; ++AI) { - DISubprogram SP((*AI)->getScopeNode()); + ArrayRef<LexicalScope *> AList = LScopes.getAbstractScopesList(); + for (unsigned i = 0, e = AList.size(); i != e; ++i) { + LexicalScope *AScope = AList[i]; + DISubprogram SP(AScope->getScopeNode()); if (SP.Verify()) { // Collect info for variables that were optimized out. StringRef FName = SP.getLinkageName(); @@ -1700,8 +1700,8 @@ void DwarfDebug::endFunction(const MachineFunction *MF) { } } } - if (ProcessedSPNodes.count((*AI)->getScopeNode()) == 0) - constructScopeDIE(*AI); + if (ProcessedSPNodes.count(AScope->getScopeNode()) == 0) + constructScopeDIE(AScope); } DIE *CurFnDIE = constructScopeDIE(LScopes.getCurrentFunctionScope()); |

