This is a simple refactoring that replaces Triple.getEnvironment()
checks for Android with Triple.isAndroid().
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
LGTM. Thanks for adding this. I know that it will make a lot of other folks happy within Android too, that this will be more easily accessible.
Comment Actions
Only minor bike shedding:
isEnvAndroid/isEnvironmentAndroid rather than just isAndroid to match the
rest of the naming scheme?
Otherwise LGTM.
-eric
Comment Actions
I'd prefer isAndroid because the fact that "-android" is environment is more of an implementation detail, and Android is more of OS (but calling the function isOSAndroid would be wrong of course).
There are precedents: isMacOSX, isiOS, isPS4.