From e5ce4c9bcde7234627fabb50e4af08df73052368 Mon Sep 17 00:00:00 2001 From: Jason W Kim Date: Mon, 7 Feb 2011 19:07:11 +0000 Subject: [PATCH] ARM/MC/ELF Lowercase .cpu attributes in .s, but make them uppercase in .o llvm-svn: 125025 --- llvm/lib/Target/ARM/ARMAsmPrinter.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/llvm/lib/Target/ARM/ARMAsmPrinter.cpp b/llvm/lib/Target/ARM/ARMAsmPrinter.cpp index 2cac02779aeb..db12b8e4fc2d 100644 --- a/llvm/lib/Target/ARM/ARMAsmPrinter.cpp +++ b/llvm/lib/Target/ARM/ARMAsmPrinter.cpp @@ -86,7 +86,7 @@ namespace { void EmitTextAttribute(unsigned Attribute, StringRef String) { switch (Attribute) { case ARMBuildAttrs::CPU_name: - Streamer.EmitRawText(StringRef("\t.cpu ") + String); + Streamer.EmitRawText(StringRef("\t.cpu ") + LowercaseString(String)); break; default: assert(0 && "Unsupported Text attribute in ASM Mode"); break; } @@ -126,7 +126,7 @@ namespace { void EmitTextAttribute(unsigned Attribute, StringRef String) { Contents += Attribute; - Contents += String; + Contents += UppercaseString(String); Contents += 0; } @@ -467,7 +467,7 @@ void ARMAsmPrinter::emitAttributes() { 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);