[CodeGen] refactor getDwarfRegNum()
This is from code review of https://github.com/llvm/llvm-project/pull/95837#discussion_r1643647221
We should use the getDwarfRegNum() defined in MCRegisterInfo.h instead of defining a new one in llvm/lib/CodeGen/StackMaps.cpp
The DwarfRegAlias may not be needed if we implement the getDwarfRegNum() by sharing the DWARF reg numbers among sub/supper registers.
@llvm/issue-subscribers-debuginfo
Author: Chen Zheng (chenzheng1030)
We should use the getDwarfRegNum() defined in MCRegisterInfo.h instead of defining a new one in llvm/lib/CodeGen/StackMaps.cpp
The DwarfRegAlias may not be needed if we implement the getDwarfRegNum() by sharing the DWARF reg numbers among sub/supper registers.