aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Basic/TargetInfo.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-11-12 08:04:33 +0000
committerChris Lattner <sabre@nondot.org>2009-11-12 08:04:33 +0000
commit0fb5bbd4010e4df7c83c1c0df951cfc8dbb3e80c (patch)
tree42bc59fbbbca52b8ca111f205ed3da45ab65022b /clang/lib/Basic/TargetInfo.cpp
parenteb9acbfb0522f4f69f1a11e47ebeda7f1a61e1df (diff)
downloadllvm-0fb5bbd4010e4df7c83c1c0df951cfc8dbb3e80c.zip
llvm-0fb5bbd4010e4df7c83c1c0df951cfc8dbb3e80c.tar.gz
llvm-0fb5bbd4010e4df7c83c1c0df951cfc8dbb3e80c.tar.bz2
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! llvm-svn: 86976
Diffstat (limited to 'clang/lib/Basic/TargetInfo.cpp')
-rw-r--r--clang/lib/Basic/TargetInfo.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/clang/lib/Basic/TargetInfo.cpp b/clang/lib/Basic/TargetInfo.cpp
index 1318130..b6c4df87 100644
--- a/clang/lib/Basic/TargetInfo.cpp
+++ b/clang/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;
}
}