[llvm-commits] [PATCH] s/CORTEX-A8/cortex-a8/ in ARMAsmPrinter.cpp

Edmund Grimley-Evans Edmund.Grimley-Evans at arm.com
Mon Feb 7 06:46:27 PST 2011


The CodeSourcery toolchain from about a year ago needs lower case in this line in the assembler file:

        .cpu cortex-a8

So this patch might be a good idea, unless some other tool version requires upper case:


Index: lib/Target/ARM/ARMAsmPrinter.cpp
===================================================================
--- lib/Target/ARM/ARMAsmPrinter.cpp	(revision 125005)
+++ lib/Target/ARM/ARMAsmPrinter.cpp	(working copy)
@@ -467,7 +467,7 @@
 
   if (CPUString == "cortex-a8" ||
       Subtarget->isCortexA8()) {
-    AttrEmitter->EmitTextAttribute(ARMBuildAttrs::CPU_name, "CORTEX-A8");
+    AttrEmitter->EmitTextAttribute(ARMBuildAttrs::CPU_name, "cortex-a8");
     AttrEmitter->EmitAttribute(ARMBuildAttrs::CPU_arch, ARMBuildAttrs::v7);
     AttrEmitter->EmitAttribute(ARMBuildAttrs::CPU_arch_profile,
                                ARMBuildAttrs::ApplicationProfile);
-- 
IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium.  Thank you.




More information about the llvm-commits mailing list