Emit debug info for global variables first.
authorDevang Patel <dpatel@apple.com>
Mon, 2 May 2011 18:19:17 +0000 (18:19 +0000)
committerDevang Patel <dpatel@apple.com>
Mon, 2 May 2011 18:19:17 +0000 (18:19 +0000)
commitc455bb7dc795b8eef66d35ec30650f39ee8b61ab
tree50c0eb5f631737252b007449df4054e7bc014e65
parent194cfb08ffe5d1c6f457b8fd1d688540a29dfc75
Emit debug info for global variables first.
This works around a limitation in gdb which is reported by following inherit.exp test failures from gdb testsuite.

gdb.cp/inherit.exp: print g_vB.vB::vb
gdb.cp/inherit.exp: print g_vB.vB::vx
gdb.cp/inherit.exp: print g_vC.vC::vc
gdb.cp/inherit.exp: print g_vC.vC::vx
gdb.cp/inherit.exp: print g_vD.vB::vb
...

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