1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-01-31 20:51:52 +01:00

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

llvm-svn: 72696
This commit is contained in:
Anton Korobeynikov 2009-06-01 19:03:17 +00:00
parent 2b0edc3327
commit f6ec078b26

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())