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)
commitaa6604c351d3459be220b782fe074bbd264f737f
tree102802e09668f8643647de45e3ee407cb021920c
parentabc546afd195bb2b077b063590038737f4ed30fb
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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@232821 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/CodeGen/StackMaps.h
lib/CodeGen/StackMaps.cpp