Rewrite StackMap location handling to pre-compute the dwarf register
authorEric Christopher <echristo@gmail.com>
Fri, 20 Mar 2015 16:03:42 +0000 (16:03 +0000)
committerEric Christopher <echristo@gmail.com>
Fri, 20 Mar 2015 16:03:42 +0000 (16:03 +0000)
commitcef8e713944ab5d3ce672f3aa3096d24d855c00c
treee09df8f317a7d2c5e6c5bbf8c9041344119ffe62
parentd43c5c75b63d6f6f01b3469e37a85b6d82471ca7
Rewrite StackMap location handling to pre-compute the dwarf register
numbers before emission.

This removes a dependency on being able to access TRI at the module
level and is similar to the DwarfExpression handling. I've modified
the debug support into print/dump routines that'll do the same dumping
but is now callable anywhere and if TRI isn't available will go ahead
and just print out raw register numbers.

llvm-svn: 232821
llvm/include/llvm/CodeGen/StackMaps.h
llvm/lib/CodeGen/StackMaps.cpp