aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target/ARM/ARMAsmPrinter.cpp
diff options
context:
space:
mode:
authorRenato Golin <renato.golin@arm.com>2011-03-02 21:20:09 +0000
committerRenato Golin <renato.golin@arm.com>2011-03-02 21:20:09 +0000
commite89a05337a9946040251a5f19165c41b9a1a7b27 (patch)
tree9ad1e1a071b5b23be6195c11bb751a95c068054c /lib/Target/ARM/ARMAsmPrinter.cpp
parentfa09685a9aa17dbdd4c72ad032684debb25feb0b (diff)
downloadexternal_llvm-e89a05337a9946040251a5f19165c41b9a1a7b27.zip
external_llvm-e89a05337a9946040251a5f19165c41b9a1a7b27.tar.gz
external_llvm-e89a05337a9946040251a5f19165c41b9a1a7b27.tar.bz2
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
Diffstat (limited to 'lib/Target/ARM/ARMAsmPrinter.cpp')
-rw-r--r--lib/Target/ARM/ARMAsmPrinter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/ARM/ARMAsmPrinter.cpp b/lib/Target/ARM/ARMAsmPrinter.cpp
index 75a87e4..5ae3944 100644
--- a/lib/Target/ARM/ARMAsmPrinter.cpp
+++ b/lib/Target/ARM/ARMAsmPrinter.cpp
@@ -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");