src/plugins/thirdParty/LLVM/tools/clang/lib/Basic/Targets.cpp
/// handleTargetFeatures - Perform initialization based on the user
/// configured set of features.
Perform initialization based on the user
configured set of features.
Perform initialization based on the user configured set of features .
bool PPCTargetInfo::handleTargetFeatures(std::vector<std::string> &Features,
                                         DiagnosticsEngine &Diags) {
  for (unsigned i = 0, e = Features.size(); i !=e; ++i) {
    if (Features[i][0] == '-')
      continue;
    StringRef Feature = StringRef(Features[i]).substr(1);
    if (Feature == "vsx") {
      HasVSX = true;
      continue;
    }
    if (Feature == "power8-vector") {
      HasP8Vector = true;
      continue;
    }
  }
  return true;
}
bool PPCTargetInfo :: handleTargetFeatures ( std :: vector < std :: string > & Features , DiagnosticsEngine & Diags ) { for ( unsigned i = 0 , e = Features . size ( ) ; i != e ; ++ i ) { if ( Features [ i ] [ 0 ] == ' ' ) continue ; StringRef Feature = StringRef ( Features [ i ] ) . substr ( 1 ) ; if ( Feature == " " ) { HasVSX = true ; continue ; } if ( Feature == " " ) { HasP8Vector = true ; continue ; } } return true ; }
handleTargetFeatures - Perform initialization based on the user
configured set of features.
handleTargetFeatures - Perform initialization based on the user configured set of features .
// Ignore disabled features. // TODO: Finish this list and add an assert that we've handled them // all.