]> granicus.if.org Git - clang/commit
Just call getContextDescriptor to get the context for subprograms
authorEric Christopher <echristo@gmail.com>
Wed, 26 Mar 2014 23:09:30 +0000 (23:09 +0000)
committerEric Christopher <echristo@gmail.com>
Wed, 26 Mar 2014 23:09:30 +0000 (23:09 +0000)
commit55b2d89ef0e286fa369cd6af5e6c64d8e8d58b87
treecb148d79a7f5a993234c0aa0bd0911ea55b6525a
parent20acbd9eeba394e7e53aafda5e59702be8112d94
Just call getContextDescriptor to get the context for subprograms
instead of rolling an inefficient version of the function. This
changes some order of emission of metadata nodes, fix up those
testcases and make them more flexible to some changes.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@204874 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGDebugInfo.cpp
test/CodeGenCXX/debug-info-function-context.cpp
test/CodeGenCXX/debug-info-namespace.cpp