From: Chris Lattner Date: Thu, 5 Feb 2009 07:27:29 +0000 (+0000) Subject: privatize some stuff. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3fa8f7491a6a6c1445768ea23ec85d3554c3ba98;p=clang privatize some stuff. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@63847 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/Basic/TargetInfo.h b/include/clang/Basic/TargetInfo.h index 67d7e63814..5eb74391c8 100644 --- a/include/clang/Basic/TargetInfo.h +++ b/include/clang/Basic/TargetInfo.h @@ -70,14 +70,17 @@ public: UnsignedLong, SignedLongLong, UnsignedLongLong - } SizeType, IntMaxType, UIntMaxType, PtrDiffType, WCharType; - enum IntType getSizeType() const {return SizeType;} - enum IntType getIntMaxType() const {return IntMaxType;} - enum IntType getUIntMaxType() const {return UIntMaxType;} - enum IntType getPtrDiffType(unsigned AddrSpace) const { + }; +protected: + IntType SizeType, IntMaxType, UIntMaxType, PtrDiffType, WCharType; +public: + IntType getSizeType() const { return SizeType; } + IntType getIntMaxType() const { return IntMaxType; } + IntType getUIntMaxType() const { return UIntMaxType; } + IntType getPtrDiffType(unsigned AddrSpace) const { return AddrSpace == 0 ? PtrDiffType : getPtrDiffTypeV(AddrSpace); } - enum IntType getWCharType() const {return WCharType;} + IntType getWCharType() const { return WCharType; } /// isCharSigned - Return true if 'char' is 'signed char' or false if it is /// treated as 'unsigned char'. This is implementation defined according to