Fixing a bug when printing fpu text to object file. Patch by Mans Rullgard.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126882 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Renato Golin 2011-03-02 21:20:09 +00:00
parent fa09685a9a
commit e89a05337a

View File

@ -498,7 +498,7 @@ void ARMAsmPrinter::emitAttributes() {
ARMBuildAttrs::Allowed);
}
if (Subtarget->hasNEON()) {
if (Subtarget->hasNEON() && emitFPU) {
/* NEON is not exactly a VFP architecture, but GAS emit one of
* neon/vfpv3/vfpv2 for .fpu parameters */
AttrEmitter->EmitTextAttribute(ARMBuildAttrs::Advanced_SIMD_arch, "neon");