mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-07-21 02:29:22 +00:00
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
This commit is contained in:
parent
aa26102db4
commit
c046d64f1b
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user