From 21ccf05b4c580854c45dcc01addfe4cfe7210f6f Mon Sep 17 00:00:00 2001 From: Devang Patel Date: Wed, 2 Jun 2010 16:42:51 +0000 Subject: [PATCH] Use local small vector. llvm-svn: 105332 --- llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp | 4 +++- llvm/lib/CodeGen/AsmPrinter/DwarfDebug.h | 3 --- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp index c9207c5a1ef2..4a88545266bc 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp @@ -2620,6 +2620,9 @@ void DwarfDebug::beginFunction(const MachineFunction *MF) { recordSourceLine(Line, Col, Scope); + /// ProcessedArgs - Collection of arguments already processed. + SmallPtrSet ProcessedArgs; + DebugLoc PrevLoc; for (MachineFunction::const_iterator I = MF->begin(), E = MF->end(); I != E; ++I) @@ -2704,7 +2707,6 @@ void DwarfDebug::endFunction(const MachineFunction *MF) { // Clear debug info CurrentFnDbgScope = NULL; InsnNeedsLabel.clear(); - ProcessedArgs.clear(); DbgVariableToFrameIndexMap.clear(); VarToAbstractVarMap.clear(); DbgVariableToDbgInstMap.clear(); diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.h b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.h index 0d6116fc9861..a9cb8e8f438f 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.h +++ b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.h @@ -231,9 +231,6 @@ class DwarfDebug { /// a debuggging information entity. SmallPtrSet InsnNeedsLabel; - /// ProcessedArgs - Collection of arguments already processed. - SmallPtrSet ProcessedArgs; - SmallVector DebugRangeSymbols; /// Previous instruction's location information. This is used to determine