summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2010-06-02 16:42:51 +0000
committerDevang Patel <dpatel@apple.com>2010-06-02 16:42:51 +0000
commit21ccf05b4c580854c45dcc01addfe4cfe7210f6f (patch)
tree585a9d6daf6b81fecaf8ec8c83acc8e7c89cfc9e /llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
parentf5e075d39280b977990476d30455a8df5e359ac9 (diff)
downloadbcm5719-llvm-21ccf05b4c580854c45dcc01addfe4cfe7210f6f.tar.gz
bcm5719-llvm-21ccf05b4c580854c45dcc01addfe4cfe7210f6f.zip
Use local small vector.
llvm-svn: 105332
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
index c9207c5a1ef..4a88545266b 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<const MDNode *, 8> 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();
OpenPOWER on IntegriCloud