diff options
author | Alisdair Meredith <public@alisdairm.net> | 2009-07-14 06:30:34 +0000 |
---|---|---|
committer | Alisdair Meredith <public@alisdairm.net> | 2009-07-14 06:30:34 +0000 |
commit | a9ad47d94c9a11535b924a55cbfb256c51583d07 (patch) | |
tree | 93264393f1ef4e9031e0fdc74c35dd68c4d12d16 /clang/lib/Basic/TargetInfo.cpp | |
parent | c0e371f1435b16131f3b0b4fc2c4dd4830c36ea6 (diff) | |
download | bcm5719-llvm-a9ad47d94c9a11535b924a55cbfb256c51583d07.tar.gz bcm5719-llvm-a9ad47d94c9a11535b924a55cbfb256c51583d07.zip |
Basic support for C++0x unicode types. Support for literals will follow in an incremental patch
llvm-svn: 75622
Diffstat (limited to 'clang/lib/Basic/TargetInfo.cpp')
-rw-r--r-- | clang/lib/Basic/TargetInfo.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/lib/Basic/TargetInfo.cpp b/clang/lib/Basic/TargetInfo.cpp index ba7f190408b..5b2ffb7d165 100644 --- a/clang/lib/Basic/TargetInfo.cpp +++ b/clang/lib/Basic/TargetInfo.cpp @@ -25,6 +25,8 @@ TargetInfo::TargetInfo(const std::string &T) : Triple(T) { TLSSupported = true; PointerWidth = PointerAlign = 32; WCharWidth = WCharAlign = 32; + Char16Width = Char16Align = 16; + Char32Width = Char32Align = 32; IntWidth = IntAlign = 32; LongWidth = LongAlign = 32; LongLongWidth = LongLongAlign = 64; @@ -41,6 +43,8 @@ TargetInfo::TargetInfo(const std::string &T) : Triple(T) { UIntMaxType = UnsignedLongLong; IntPtrType = SignedLong; WCharType = SignedInt; + Char16Type = UnsignedShort; + Char32Type = UnsignedInt; Int64Type = SignedLongLong; FloatFormat = &llvm::APFloat::IEEEsingle; DoubleFormat = &llvm::APFloat::IEEEdouble; |