Do not treat beginning of inlined scope as beginning of normal function scope if...
authorDevang Patel <dpatel@apple.com>
Thu, 16 Apr 2009 17:55:30 +0000 (17:55 +0000)
committerDevang Patel <dpatel@apple.com>
Thu, 16 Apr 2009 17:55:30 +0000 (17:55 +0000)
commit02f8c410148ba3b6009ed67df41e2c97c1c07c3a
tree20ceb48ab7fb8df70bce514040b4d7e664045694
parent65e05b69d60e67caad9ef70b24d4033d0e68b617
Do not treat beginning of inlined scope as beginning of normal function scope if the location info is missing.

Insetad of doing ...
if (inlined_subroutine && known_location)
  DW_TAG_inline_subroutine
else
  DW_TAG_subprogram

do

if (inlined_subroutine) {
 if (known_location)
   DW_TAG_inline_subroutine
} else {
 DW_TAG_subprogram
}

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@69300 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/FastISel.cpp
lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp