]> granicus.if.org Git - clang/commitdiff
privatize some stuff.
authorChris Lattner <sabre@nondot.org>
Thu, 5 Feb 2009 07:27:29 +0000 (07:27 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 5 Feb 2009 07:27:29 +0000 (07:27 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@63847 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Basic/TargetInfo.h

index 67d7e638145241b32ac041b8c7544bae8f15a2f1..5eb74391c80487f7a02a7298f3ab171ca64a4773 100644 (file)
@@ -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