diff options
author | Charlie Turner <charlie.turner@arm.com> | 2014-11-25 09:30:09 +0000 |
---|---|---|
committer | Charlie Turner <charlie.turner@arm.com> | 2014-11-25 09:30:09 +0000 |
commit | 94c465cf108e1e5c764fb82f7eb4d26c714f8747 (patch) | |
tree | 05fa4d6f546617489c5c3fdfbf53ac3f61319b32 /tools/llvm-readobj | |
parent | faab0cf1ad4387fe11556bf6359edb7ad9de32a7 (diff) |
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
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@222743 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/llvm-readobj')
-rw-r--r-- | tools/llvm-readobj/ARMAttributeParser.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/llvm-readobj/ARMAttributeParser.cpp b/tools/llvm-readobj/ARMAttributeParser.cpp index d35cd14265f..e2d71912a21 100644 --- a/tools/llvm-readobj/ARMAttributeParser.cpp +++ b/tools/llvm-readobj/ARMAttributeParser.cpp @@ -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); |