diff options
author | Eli Friedman <eli.friedman@gmail.com> | 2008-08-21 00:13:15 +0000 |
---|---|---|
committer | Eli Friedman <eli.friedman@gmail.com> | 2008-08-21 00:13:15 +0000 |
commit | 873f65afe8f8e959ece92ca216d80ddbdd04c94a (patch) | |
tree | a0326a280405ba223366b06b7a0b8557c9c5d98c /clang/lib/Basic/TargetInfo.cpp | |
parent | 0bed49ccd7b9eda548eb4daae84bd7581280a614 (diff) | |
download | bcm5719-llvm-873f65afe8f8e959ece92ca216d80ddbdd04c94a.tar.gz bcm5719-llvm-873f65afe8f8e959ece92ca216d80ddbdd04c94a.zip |
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.
llvm-svn: 55091
Diffstat (limited to 'clang/lib/Basic/TargetInfo.cpp')
-rw-r--r-- | clang/lib/Basic/TargetInfo.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Basic/TargetInfo.cpp b/clang/lib/Basic/TargetInfo.cpp index 6247afd5887..c1597cdeb13 100644 --- a/clang/lib/Basic/TargetInfo.cpp +++ b/clang/lib/Basic/TargetInfo.cpp @@ -37,8 +37,8 @@ TargetInfo::TargetInfo(const std::string &T) : Triple(T) { FloatFormat = &llvm::APFloat::IEEEsingle; DoubleFormat = &llvm::APFloat::IEEEdouble; LongDoubleFormat = &llvm::APFloat::IEEEdouble; - DescriptionString = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:\ -32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64-f80:128:128"; + DescriptionString = "E-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-" + "i64:64:64-f32:32:32-f64:64:64"; } // Out of line virtual dtor for TargetInfo. |