diff options
-rw-r--r-- | include/clang/Basic/TargetInfo.h | 4 | ||||
-rw-r--r-- | lib/Basic/TargetInfo.cpp | 1 |
2 files changed, 3 insertions, 2 deletions
diff --git a/include/clang/Basic/TargetInfo.h b/include/clang/Basic/TargetInfo.h index ce7f7daeb9..ca755b907f 100644 --- a/include/clang/Basic/TargetInfo.h +++ b/include/clang/Basic/TargetInfo.h @@ -44,6 +44,7 @@ protected: unsigned char LongDoubleWidth, LongDoubleAlign; unsigned char LongWidth, LongAlign; unsigned char LongLongWidth, LongLongAlign; + unsigned char IntMaxTWidth; const char *DescriptionString; const char *UserLabelPrefix; const llvm::fltSemantics *FloatFormat, *DoubleFormat, *LongDoubleFormat; @@ -150,8 +151,7 @@ public: /// getIntMaxTWidth - Return the size of intmax_t and uintmax_t for this /// target, in bits. unsigned getIntMaxTWidth() const { - // FIXME: implement correctly. - return 64; + return IntMaxTWidth; } /// getUserLabelPrefix - This returns the default value of the diff --git a/lib/Basic/TargetInfo.cpp b/lib/Basic/TargetInfo.cpp index 89bc8b4c8f..2ea1f232bf 100644 --- a/lib/Basic/TargetInfo.cpp +++ b/lib/Basic/TargetInfo.cpp @@ -34,6 +34,7 @@ TargetInfo::TargetInfo(const std::string &T) : Triple(T) { DoubleAlign = 64; LongDoubleWidth = 64; LongDoubleAlign = 64; + IntMaxTWidth = 64; SizeType = UnsignedLong; PtrDiffType = SignedLong; IntMaxType = SignedLongLong; |