forked from OSchip/llvm-project
24e07570cc
RegisterInfo's `reg_name`/`reg_alt_name` fields are C-Strings and are supposed
to only be generated from a ConstString. The reason for that is that
`DynamicRegisterInfo::GetRegisterInfo` and
`RegInfoBasedABI::GetRegisterInfoByName` try to optimise finding registers by
name by only comparing the C string pointer values instead of the underlying
strings. This only works if both C strings involved in the comparison come from
a ConstString. If one of the two C strings doesn't come from a ConstString the
comparison won't work (and most likely will silently fail).
I added an assert in
|
||
---|---|---|
.. | ||
ABIMips.cpp | ||
ABIMips.h | ||
ABISysV_mips.cpp | ||
ABISysV_mips.h | ||
ABISysV_mips64.cpp | ||
ABISysV_mips64.h | ||
CMakeLists.txt |