OSDN Git Service

[X86] Merge X86TargetInfo::setFeatureEnabled and X86TargetInfo::setFeatureEnabledImpl...
authorCraig Topper <craig.topper@intel.com>
Tue, 7 Jul 2020 06:50:41 +0000 (23:50 -0700)
committerCraig Topper <craig.topper@intel.com>
Tue, 7 Jul 2020 06:54:56 +0000 (23:54 -0700)
commit3cbfe988bc5cd366fb0f62e597f899b489c3834d
tree93629d9991171a1a1e503112359b299f583bb917
parent560292fa990a2bfcf8415f07a166393beff667f6
[X86] Merge X86TargetInfo::setFeatureEnabled and X86TargetInfo::setFeatureEnabledImpl. NFC

setFeatureEnabled is a virtual function. setFeatureEnabledImpl
was its implementation. This split was to avoid virtual calls
when we need to call setFeatureEnabled in initFeatureMap.

With C++11 we can use 'final' on setFeatureEnabled to enable
the compiler to perform de-virtualization for the initFeatureMap
calls.
clang/lib/Basic/Targets/X86.cpp
clang/lib/Basic/Targets/X86.h