]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/commit
MFC r251431:
authordim <dim@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Wed, 12 Jun 2013 07:04:27 +0000 (07:04 +0000)
committerdim <dim@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Wed, 12 Jun 2013 07:04:27 +0000 (07:04 +0000)
commitb17d17a625008e6e03cb778d8a11834752a8ecc8
treea0cb826553138d4902d230a7befc7763426f5aea
parent3bb9f54780417c84a4d758d1d0ad112c258d522f
MFC r251431:

Pull in r183297 from upstream llvm trunk:

  PR15662: Optimized debug info produces out of order function
  parameters

  When a function is inlined we lazily construct the variables
  representing the function's parameters. After that, we add any
  remaining unused parameters.

  If the function doesn't use all the parameters, or uses them out of
  order, then the DWARF would produce them in that order, producing a
  parameter order that doesn't match the source.

  This fix causes us to always keep the arg variables at the start of
  the variable list & in the original order from the source.

Reported by: avg

git-svn-id: svn://svn.freebsd.org/base/stable/9@251645 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
contrib/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp