]> granicus.if.org Git - clang/commit
First cut at OS detection, taking advantage of the new generic targets.
authorEli Friedman <eli.friedman@gmail.com>
Thu, 21 Aug 2008 00:13:15 +0000 (00:13 +0000)
committerEli Friedman <eli.friedman@gmail.com>
Thu, 21 Aug 2008 00:13:15 +0000 (00:13 +0000)
commited855cbbdfa53215c23b49064bb79579a1840fe1
treea4760d4017da700fbccdb12a97360fb70ec5e744
parente4277985819ef48ad74e37b1770af61af3761482
First cut at OS detection, taking advantage of the new generic targets.
This approach allows adding OS-specific targets/defines/etc. without
completely breaking unknown subtargets.  No new subtargets yet, although
I plan to add x86-Linux soon.  Others can add targets that they use as
needed; adding a new subtarget takes very little code.

Also does some fixups for description strings; a lot of them were
unspecified.  I think all the ones I added are correct, but
they're unverified; corrections are welcome.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@55091 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Basic/TargetInfo.cpp
lib/Basic/Targets.cpp