diff options
author | Nate Begeman <natebegeman@mac.com> | 2009-01-17 23:56:13 +0000 |
---|---|---|
committer | Nate Begeman <natebegeman@mac.com> | 2009-01-17 23:56:13 +0000 |
commit | a45707c06ad5ab677ac052a9e2801f08dc7901f5 (patch) | |
tree | 52a2ae43858d457a2a8c71c01eda14533ce2f15f /clang | |
parent | 19aa04d27009f55ed40f51c27d6fb66a999826fd (diff) | |
download | bcm5719-llvm-a45707c06ad5ab677ac052a9e2801f08dc7901f5.tar.gz bcm5719-llvm-a45707c06ad5ab677ac052a9e2801f08dc7901f5.zip |
Allow targets to override IntMaxTWidth
llvm-svn: 62434
Diffstat (limited to 'clang')
-rw-r--r-- | clang/include/clang/Basic/TargetInfo.h | 4 | ||||
-rw-r--r-- | clang/lib/Basic/TargetInfo.cpp | 1 |
2 files changed, 3 insertions, 2 deletions
diff --git a/clang/include/clang/Basic/TargetInfo.h b/clang/include/clang/Basic/TargetInfo.h index ce7f7daeb9c..ca755b907fa 100644 --- a/clang/include/clang/Basic/TargetInfo.h +++ b/clang/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/clang/lib/Basic/TargetInfo.cpp b/clang/lib/Basic/TargetInfo.cpp index 89bc8b4c8f9..2ea1f232bfd 100644 --- a/clang/lib/Basic/TargetInfo.cpp +++ b/clang/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; |