summaryrefslogtreecommitdiffstats
path: root/clang
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-02-05 07:27:29 +0000
committerChris Lattner <sabre@nondot.org>2009-02-05 07:27:29 +0000
commit6e5ca6bff9b209da8f3242ce7924a0b4557beace (patch)
treea747e6dd102b9af578a5f6fc8a49ee233dedb95d /clang
parent81813122519382d54cbde2898e4d5e6e2f56527f (diff)
downloadbcm5719-llvm-6e5ca6bff9b209da8f3242ce7924a0b4557beace.tar.gz
bcm5719-llvm-6e5ca6bff9b209da8f3242ce7924a0b4557beace.zip
privatize some stuff.
llvm-svn: 63847
Diffstat (limited to 'clang')
-rw-r--r--clang/include/clang/Basic/TargetInfo.h15
1 files changed, 9 insertions, 6 deletions
diff --git a/clang/include/clang/Basic/TargetInfo.h b/clang/include/clang/Basic/TargetInfo.h
index 67d7e638145..5eb74391c80 100644
--- a/clang/include/clang/Basic/TargetInfo.h
+++ b/clang/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
OpenPOWER on IntegriCloud