diff options
author | Chris Lattner <sabre@nondot.org> | 2009-11-12 08:04:33 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-11-12 08:04:33 +0000 |
commit | 9184646509d015ea66e796113a8c68598681374b (patch) | |
tree | 73cf5f23fc479b16578081672a4d4dd6c253550b /lib/Basic/TargetInfo.cpp | |
parent | 6907943901e0aae5be7618c36c0f8275634e6ab5 (diff) |
do not store wchar/char16/char32/intmax width/alignment info
into TargetInfo, just derive this based on the underlying type.
This prevents them from getting out of synch, patch by Ken Dyck!
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@86976 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Basic/TargetInfo.cpp')
-rw-r--r-- | lib/Basic/TargetInfo.cpp | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/lib/Basic/TargetInfo.cpp b/lib/Basic/TargetInfo.cpp index 1318130b87..b6c4df87f2 100644 --- a/lib/Basic/TargetInfo.cpp +++ b/lib/Basic/TargetInfo.cpp @@ -25,9 +25,6 @@ TargetInfo::TargetInfo(const std::string &T) : Triple(T) { // These should be overridden by concrete targets as needed. TLSSupported = true; PointerWidth = PointerAlign = 32; - WCharWidth = WCharAlign = 32; - Char16Width = Char16Align = 16; - Char32Width = Char32Align = 32; IntWidth = IntAlign = 32; LongWidth = LongAlign = 32; LongLongWidth = LongLongAlign = 64; @@ -37,7 +34,6 @@ TargetInfo::TargetInfo(const std::string &T) : Triple(T) { DoubleAlign = 64; LongDoubleWidth = 64; LongDoubleAlign = 64; - IntMaxTWidth = 64; SizeType = UnsignedLong; PtrDiffType = SignedLong; IntMaxType = SignedLongLong; @@ -147,7 +143,6 @@ bool TargetInfo::isTypeSigned(IntType T) const { void TargetInfo::setForcedLangOptions(LangOptions &Opts) { if (Opts.ShortWChar) { WCharType = UnsignedShort; - WCharWidth = WCharAlign = 16; } } |