diff options
author | Renato Golin <renato.golin@linaro.org> | 2015-05-27 18:15:37 +0000 |
---|---|---|
committer | Renato Golin <renato.golin@linaro.org> | 2015-05-27 18:15:37 +0000 |
commit | f7c0d5f2471824fe2b961ab9674fb503e6196eac (patch) | |
tree | a9e345b204c378972ce4a13472399751c8f03a93 /llvm/lib/Target/ARM/MCTargetDesc/ARMELFStreamer.cpp | |
parent | 90811cb073c87e6921533fa90c881e6a0f80f7e9 (diff) | |
download | bcm5719-llvm-f7c0d5f2471824fe2b961ab9674fb503e6196eac.tar.gz bcm5719-llvm-f7c0d5f2471824fe2b961ab9674fb503e6196eac.zip |
ARMTargetParser: Normalising build attributes
Now that most of the methods in Clang and LLVM that were parsing arch/cpu/fpu
strings are using ARMTargetParser, it's time to make it a bit more conforming
with what the ABI says.
This commit adds some clarification on what build attributes are accepted and
which are "non-standard". It also makes clear that the "defaultCPU" and
"defaultArch" methods were really just build attribute getters.
It also diverges from GCC's behaviour to say that armv2/armv3 are really an
ARMv4 in the build attributes, when the ABI has a clear state for that: Pre-v4.
llvm-svn: 238344
Diffstat (limited to 'llvm/lib/Target/ARM/MCTargetDesc/ARMELFStreamer.cpp')
-rw-r--r-- | llvm/lib/Target/ARM/MCTargetDesc/ARMELFStreamer.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Target/ARM/MCTargetDesc/ARMELFStreamer.cpp b/llvm/lib/Target/ARM/MCTargetDesc/ARMELFStreamer.cpp index 0eb5a8136e8..4dc3dac7f56 100644 --- a/llvm/lib/Target/ARM/MCTargetDesc/ARMELFStreamer.cpp +++ b/llvm/lib/Target/ARM/MCTargetDesc/ARMELFStreamer.cpp @@ -688,16 +688,16 @@ void ARMTargetELFStreamer::emitArchDefaultAttributes() { using namespace ARMBuildAttrs; setAttributeItem(CPU_name, - ARMTargetParser::getArchDefaultCPUName(Arch), + ARMTargetParser::getCPUAttr(Arch), false); if (EmittedArch == ARM::AK_INVALID) setAttributeItem(CPU_arch, - ARMTargetParser::getArchDefaultCPUArch(Arch), + ARMTargetParser::getArchAttr(Arch), false); else setAttributeItem(CPU_arch, - ARMTargetParser::getArchDefaultCPUArch(EmittedArch), + ARMTargetParser::getArchAttr(EmittedArch), false); switch (Arch) { |