[PATCH] Prevent errors of omission when adding backend names.

Douglas Katzman dougk at google.com
Mon May 4 13:46:47 PDT 2015


To use a range-based for loop requires an artificial object as the head of the registry because begin() and end() are static methods.
Something like this:

  llvm::TargetRegistry RegistryRoot;
  for (const auto& Target : RegistryRoot ) {

Do you prefer that and/or should I change the other (6 ish) places where the explicit loop appears?


http://reviews.llvm.org/D9441

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/






More information about the llvm-commits mailing list