aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason W Kim <jason.w.kim.2009@gmail.com>2011-02-07 19:07:11 +0000
committerJason W Kim <jason.w.kim.2009@gmail.com>2011-02-07 19:07:11 +0000
commitc046d64f1b5f19cb06616e519a45bc4b0693f9d3 (patch)
tree0f484e778f6213ff5ed5160336ddceb0aafa7242
parentaa26102db47ac7041a54728cf856de4dca700880 (diff)
ARM/MC/ELF Lowercase .cpu attributes in .s, but make them uppercase in .o
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@125025 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Target/ARM/ARMAsmPrinter.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Target/ARM/ARMAsmPrinter.cpp b/lib/Target/ARM/ARMAsmPrinter.cpp
index 2cac02779a..db12b8e4fc 100644
--- a/lib/Target/ARM/ARMAsmPrinter.cpp
+++ b/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);