]> granicus.if.org Git - clang/commit
Debug info: use the file a typedef is defined in as its decl_file instead
authorAdrian Prantl <aprantl@apple.com>
Tue, 21 Jan 2014 18:42:27 +0000 (18:42 +0000)
committerAdrian Prantl <aprantl@apple.com>
Tue, 21 Jan 2014 18:42:27 +0000 (18:42 +0000)
commitaeff128ac7e68e9e00bb9bd430bc64ecebfb8fda
treea8675e9cfdefb147e4b1f2697828edb765fe931e
parent0627310f5d0f2aae9f6198df5997ea5042e90077
Debug info: use the file a typedef is defined in as its decl_file instead
of the current compilation unit.
As a side effect this enables many more LTO uniquing opportunities.

This reapplies r199757 with a better testcase.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@199760 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGDebugInfo.cpp
test/CodeGen/debug-info-typedef.c [new file with mode: 0644]