This is an archive of the discontinued LLVM Phabricator instance.

NFC refactorings in lib/Support/TargetParser.cpp
ClosedPublic

Authored by tyomitch on Nov 13 2015, 3:50 AM.

Details

Summary
  • declare FPUNames, ARCHNames, ARCHExtNames, HWDivNames, CPUNames as static const
  • implement getDefaultExtensions with a StringSwitch, in the same way getDefaultFPU is implemented

Diff Detail

Repository
rL LLVM

Event Timeline

tyomitch updated this revision to Diff 40134.Nov 13 2015, 3:50 AM
tyomitch retitled this revision from to NFC refactorings in lib/Support/TargetParser.cpp.
tyomitch updated this object.
tyomitch added a reviewer: rengolin.
tyomitch added a subscriber: llvm-commits.
rengolin accepted this revision.Nov 16 2015, 3:55 AM
rengolin edited edge metadata.

LGTM, thanks!

This revision is now accepted and ready to land.Nov 16 2015, 3:55 AM
tyomitch updated this revision to Diff 40272.Nov 16 2015, 4:04 AM
tyomitch edited edge metadata.

Rebased over r253198

This revision was automatically updated to reflect the committed changes.