]> granicus.if.org Git - clang/commit
Clean up a bit of the uses of CPU in the TargetInfo classes. This makes
authorChandler Carruth <chandlerc@gmail.com>
Wed, 28 Sep 2011 05:56:05 +0000 (05:56 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Wed, 28 Sep 2011 05:56:05 +0000 (05:56 +0000)
commitc3a2e654f1e1c5cf956d0666d9c4c2f60a66f112
treead54800d2fd09164aceda60ab2ad030414730e60
parent7ca268423c400ef0109d2b8b29717a83f87e0f3e
Clean up a bit of the uses of CPU in the TargetInfo classes. This makes
it an error if a CPU is provided for a target that doesn't implement
logic handling CPU settings, to match the ABI settings. It also removes
the CPU parameter from the getDefaultFeatures method. This parameter was
always filled in with the same value as setCPU was called with, and at
this point every single target implementation that referenced the CPU
within this function has needed to store the CPU via setCPU anyways in
order to implement other interface points.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@140683 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/TargetInfo.h
lib/Basic/Targets.cpp