If we see that we're emitting code for a function that doesn't have
authorEric Christopher <echristo@gmail.com>
Fri, 14 Mar 2014 20:53:49 +0000 (20:53 +0000)
committerEric Christopher <echristo@gmail.com>
Fri, 14 Mar 2014 20:53:49 +0000 (20:53 +0000)
commit82899d9d60710d42be45cfb7451d9dfbe07d88c3
treeaf81a42ecffc626530ba3be2033497a953be7643
parent895ec9ed94f1e5b66d1c7e459a148da0f38f3a87
If we see that we're emitting code for a function that doesn't have
any lexical scopes then go ahead and turn on DW_AT_ranges for the
compile unit since we would be claiming to describe in the CU
a range for which we don't have information in the CU otherwise.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203969 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/AsmPrinter/DwarfDebug.cpp
test/DebugInfo/cu-range-hole.ll [new file with mode: 0644]