aboutsummaryrefslogtreecommitdiff
path: root/llvm/tools/llvm-readobj/ARMAttributeParser.cpp
diff options
context:
space:
mode:
authorCharlie Turner <charlie.turner@arm.com>2014-11-25 09:30:09 +0000
committerCharlie Turner <charlie.turner@arm.com>2014-11-25 09:30:09 +0000
commitc27023c6225315679ae5d150fe836db47210a949 (patch)
tree45bd3ab750c8257f4dad580072dc8475388ca3ce /llvm/tools/llvm-readobj/ARMAttributeParser.cpp
parent4b9e85789d8e095618aec64ea650b6d34f8f68a1 (diff)
downloadllvm-c27023c6225315679ae5d150fe836db47210a949.zip
llvm-c27023c6225315679ae5d150fe836db47210a949.tar.gz
llvm-c27023c6225315679ae5d150fe836db47210a949.tar.bz2
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
Diffstat (limited to 'llvm/tools/llvm-readobj/ARMAttributeParser.cpp')
-rw-r--r--llvm/tools/llvm-readobj/ARMAttributeParser.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/tools/llvm-readobj/ARMAttributeParser.cpp b/llvm/tools/llvm-readobj/ARMAttributeParser.cpp
index d35cd14..e2d7191 100644
--- a/llvm/tools/llvm-readobj/ARMAttributeParser.cpp
+++ b/llvm/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);