rdar://problem/11374963

Fix a subtle ArchSpec::cores_match() logic issue which prevents the add-dsym command
to add a debug symbol file to one of the target's current modules.

llvm-svn: 162802
This commit is contained in:
Johnny Chen 2012-08-28 22:53:40 +00:00
parent 272b7dc8ae
commit 1083b0dea6
1 changed files with 9 additions and 0 deletions

View File

@ -862,6 +862,15 @@ cores_match (const ArchSpec::Core core1, const ArchSpec::Core core2, bool try_in
return true;
break;
case ArchSpec::eCore_arm_armv7:
case ArchSpec::eCore_arm_armv7f:
case ArchSpec::eCore_arm_armv7k:
case ArchSpec::eCore_arm_armv7s:
try_inverse = false;
if (core2 == ArchSpec::eCore_arm_armv7)
return true;
break;
default:
break;
}