RecordVariable is called each time a DECLARE node is encountered. For an inlined
authorBill Wendling <isanbard@gmail.com>
Mon, 18 May 2009 22:02:36 +0000 (22:02 +0000)
committerBill Wendling <isanbard@gmail.com>
Mon, 18 May 2009 22:02:36 +0000 (22:02 +0000)
commit6679ee4e805f606264ed4e03449b957c9212cfb6
tree4287a9d26a8541434b4f733a18bceee29ba4f43e
parent94c9cd17de1a21fbc69969f66a8b1af145d55c0c
RecordVariable is called each time a DECLARE node is encountered. For an inlined
function, this could be many, many times. We don't want to re-add variables to
that DIE for each time. We just want to add them once. Check to make sure that
we haven't added them already.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72047 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/AsmPrinter/DwarfDebug.cpp
lib/CodeGen/AsmPrinter/DwarfDebug.h