Do not emit "generic" CPU string. This fixes PR4291.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72696 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Anton Korobeynikov 2009-06-01 19:03:17 +00:00
parent 41b33f437f
commit d260c248ab

View File

@ -820,7 +820,9 @@ bool ARMAsmPrinter::doInitialization(Module &M) {
// 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())