Replace multiple comparisons of getOS() value with FreeBSD, NetBSD,
OpenBSD and DragonFly with matching isOS*BSD() methods. This should
improve the consistency of coding style without changing the behavior.
Direct getOS() comparisons were left whenever used in switch or switch-
like context.
Details
Details
Diff Detail
Diff Detail
Event Timeline
| lib/Basic/Targets/ARM.cpp | ||
|---|---|---|
| 285 | Actually we could use IsNetBSD and IsOpenBSD here. | |
| lib/Basic/Targets/ARM.cpp | ||
|---|---|---|
| 285 | Good catch. Thanks! | |
Comment Actions
This causes test case failures due to no longer linking with -lrt on Linux.
| lib/Driver/ToolChains/CommonArgs.cpp | ||
|---|---|---|
| 606 | Looks like this is missing a ! here. | |
Comment Actions
No problem. I'm sorry about my initial mistake. Apparently it slipped me even though I've double checked it originally.
Actually we could use IsNetBSD and IsOpenBSD here.