mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-02-18 00:38:31 +00:00
Correctly handle Tag_CPU_arch_profile.
Fix ARMAttributeParser::CPU_arch_profile so that it doesn't switch on the value '0' as a legal value of this build attribute. Change-Id: Ie05a08900a82bb10b78c841b437df747ce3bb38e llvm-svn: 222743
This commit is contained in:
parent
4b9e85789d
commit
c27023c622
@ -141,7 +141,7 @@ void ARMAttributeParser::CPU_arch_profile(AttrType Tag, const uint8_t *Data,
|
||||
case 'R': Profile = "Real-time"; break;
|
||||
case 'M': Profile = "Microcontroller"; break;
|
||||
case 'S': Profile = "Classic"; break;
|
||||
case '0': Profile = "None"; break;
|
||||
case 0: Profile = "None"; break;
|
||||
}
|
||||
|
||||
PrintAttribute(Tag, Encoded, Profile);
|
||||
|
Loading…
x
Reference in New Issue
Block a user