Do not unnecessarily use AT_specification DIE because it does not add any value.
authorDevang Patel <dpatel@apple.com>
Wed, 21 Sep 2011 23:41:11 +0000 (23:41 +0000)
committerDevang Patel <dpatel@apple.com>
Wed, 21 Sep 2011 23:41:11 +0000 (23:41 +0000)
commit1dd4e56d5565d59e9d40ad9e088a05e06f4b70f8
treee91f78127a280101e7b563c5c5d082e7c12cdb62
parentef01f32d07f4c7ecd9d116be53c5f3de3138f1ae
Do not unnecessarily use AT_specification DIE because it does not add any value.

Few weeks ago, llvm completely inverted the debug info graph. Earlier each debug info node used to keep track of its compile unit, now compile unit keeps track of important nodes. One impact of this change is that the global variable's do not have any context, which should be checked before deciding to use AT_specification DIE.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140282 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
test/CodeGen/X86/dbg-at-specficiation.ll [new file with mode: 0644]