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 | cd9f6c53de95f5301c0152cab2ccc78d653d6270 (patch) | |
tree | 72dba255be6881635fb4af3a6fa08b16d5cafed6 /lib/CodeGen/AsmPrinter/DwarfDebug.cpp | |
parent | 0285e7d1c14746865a4ef772fec98370a3543a5b (diff) | |
download | external_llvm-cd9f6c53de95f5301c0152cab2ccc78d653d6270.zip external_llvm-cd9f6c53de95f5301c0152cab2ccc78d653d6270.tar.gz external_llvm-cd9f6c53de95f5301c0152cab2ccc78d653d6270.tar.bz2 |
Use ArrayRef.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@137485 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/AsmPrinter/DwarfDebug.cpp')
-rw-r--r-- | lib/CodeGen/AsmPrinter/DwarfDebug.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp index 76dc43f..f5c762b 100644 --- a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp +++ b/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()); |