[llvm-commits] [llvm] r72696 - /llvm/trunk/lib/Target/ARM/AsmPrinter/ARMAsmPrinter.cpp
Anton Korobeynikov
asl at math.spbu.ru
Mon Jun 1 12:03:18 PDT 2009
Author: asl
Date: Mon Jun 1 14:03:17 2009
New Revision: 72696
URL: http://llvm.org/viewvc/llvm-project?rev=72696&view=rev
Log:
Do not emit "generic" CPU string. This fixes PR4291.
Modified:
llvm/trunk/lib/Target/ARM/AsmPrinter/ARMAsmPrinter.cpp
Modified: llvm/trunk/lib/Target/ARM/AsmPrinter/ARMAsmPrinter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARM/AsmPrinter/ARMAsmPrinter.cpp?rev=72696&r1=72695&r2=72696&view=diff
==============================================================================
--- llvm/trunk/lib/Target/ARM/AsmPrinter/ARMAsmPrinter.cpp (original)
+++ llvm/trunk/lib/Target/ARM/AsmPrinter/ARMAsmPrinter.cpp Mon Jun 1 14:03:17 2009
@@ -820,7 +820,9 @@
// Emit ARM Build Attributes
if (Subtarget->isTargetELF()) {
// CPU Type
- O << "\t.cpu " << Subtarget->getCPUString() << '\n';
+ std::string CPUString = Subtarget->getCPUString();
+ if (CPUString != "generic")
+ O << "\t.cpu " << CPUString << '\n';
// FIXME: Emit FPU type
if (Subtarget->hasVFP2())
More information about the llvm-commits
mailing list