summaryrefslogtreecommitdiffstats
path: root/clang/lib/Driver/Tools.cpp
diff options
context:
space:
mode:
authorBob Wilson <bob.wilson@apple.com>2012-05-09 17:47:03 +0000
committerBob Wilson <bob.wilson@apple.com>2012-05-09 17:47:03 +0000
commit8d4e2fab63e715c3e93c8321b32e00ccd74ed85c (patch)
tree5366e6360691b735ab2f6737904e1053703d8e0d /clang/lib/Driver/Tools.cpp
parentdd83f5e779607266c94c5706015ab253acd40a5c (diff)
downloadbcm5719-llvm-8d4e2fab63e715c3e93c8321b32e00ccd74ed85c.tar.gz
bcm5719-llvm-8d4e2fab63e715c3e93c8321b32e00ccd74ed85c.zip
Use the cpuid 64 bit flag to pick the default CPU name for an unknown model.
For the Family 6 switch in sys::getHostCPUName, an unrecognized model was reported as "i686". That's a really bad default since it means that new CPUs will be treated as if they can only use 32-bit code. This just looks at the cpuid extended feature flag for 64 bit support, and if that is set, it uses a default x86-64 cpu. Similar logic is already used for the Family 15 code. <rdar://problem/11314502> llvm-svn: 156486
Diffstat (limited to 'clang/lib/Driver/Tools.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud