[PATCH] D25949: [Driver] Refactor distro detection & classification as a separate API
Michał Górny via cfe-commits
cfe-commits at lists.llvm.org
Tue Oct 25 10:00:45 PDT 2016
mgorny created this revision.
mgorny added reviewers: bruno, bkramer.
mgorny added a subscriber: cfe-commits.
Herald added subscribers: modocache, beanz.
Refactor the Distro enum along with helper functions into a full-fledged
Distro class, inspired by llvm::Triple, and make it a public API.
The new class wraps the enum with necessary comparison operators, adding
the convenience Is*() methods and a constructor performing
the detection. The public API is needed to run the unit tests (https://reviews.llvm.org/D25869).
https://reviews.llvm.org/D25949
Files:
include/clang/Driver/Distro.h
lib/Driver/CMakeLists.txt
lib/Driver/Distro.cpp
lib/Driver/ToolChains.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D25949.75725.patch
Type: text/x-patch
Size: 16786 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20161025/5fa4720d/attachment-0001.bin>
More information about the cfe-commits
mailing list