[llvm] r222743 - Correctly handle Tag_CPU_arch_profile.

Charlie Turner charlie.turner at arm.com
Tue Nov 25 01:30:09 PST 2014


Author: chatur01
Date: Tue Nov 25 03:30:09 2014
New Revision: 222743

URL: http://llvm.org/viewvc/llvm-project?rev=222743&view=rev
Log:
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

Modified:
    llvm/trunk/tools/llvm-readobj/ARMAttributeParser.cpp

Modified: llvm/trunk/tools/llvm-readobj/ARMAttributeParser.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-readobj/ARMAttributeParser.cpp?rev=222743&r1=222742&r2=222743&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-readobj/ARMAttributeParser.cpp (original)
+++ llvm/trunk/tools/llvm-readobj/ARMAttributeParser.cpp Tue Nov 25 03:30:09 2014
@@ -141,7 +141,7 @@ void ARMAttributeParser::CPU_arch_profil
   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);





More information about the llvm-commits mailing list