[llvm-commits] [llvm] r125025 - /llvm/trunk/lib/Target/ARM/ARMAsmPrinter.cpp
Jason W Kim
jason.w.kim.2009 at gmail.com
Mon Feb 7 11:07:11 PST 2011
Author: jasonwkim
Date: Mon Feb 7 13:07:11 2011
New Revision: 125025
URL: http://llvm.org/viewvc/llvm-project?rev=125025&view=rev
Log:
ARM/MC/ELF Lowercase .cpu attributes in .s, but make them uppercase in .o
Modified:
llvm/trunk/lib/Target/ARM/ARMAsmPrinter.cpp
Modified: llvm/trunk/lib/Target/ARM/ARMAsmPrinter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARM/ARMAsmPrinter.cpp?rev=125025&r1=125024&r2=125025&view=diff
==============================================================================
--- llvm/trunk/lib/Target/ARM/ARMAsmPrinter.cpp (original)
+++ llvm/trunk/lib/Target/ARM/ARMAsmPrinter.cpp Mon Feb 7 13:07:11 2011
@@ -86,7 +86,7 @@
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 @@
void EmitTextAttribute(unsigned Attribute, StringRef String) {
Contents += Attribute;
- Contents += String;
+ Contents += UppercaseString(String);
Contents += 0;
}
@@ -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);
More information about the llvm-commits
mailing list