From 148735ecc78fc58bea17d5cdd3225d484f350865 Mon Sep 17 00:00:00 2001 From: Akira Hatanaka Date: Sat, 5 Nov 2011 01:48:34 +0000 Subject: [PATCH] Move definitions of SizeType and PtrDiffType to Mips32TargetInfoBase. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@143775 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Basic/Targets.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/Basic/Targets.cpp b/lib/Basic/Targets.cpp index 0df5ed2fab..a867bf14c7 100644 --- a/lib/Basic/Targets.cpp +++ b/lib/Basic/Targets.cpp @@ -3029,10 +3029,7 @@ protected: std::string ABI; public: MipsTargetInfoBase(const std::string& triple, const std::string& ABIStr) - : TargetInfo(triple), ABI(ABIStr) { - SizeType = UnsignedInt; - PtrDiffType = SignedInt; - } + : TargetInfo(triple), ABI(ABIStr) {} virtual const char *getABI() const { return ABI.c_str(); } virtual bool setABI(const std::string &Name) = 0; virtual bool setCPU(const std::string &Name) { @@ -3098,7 +3095,10 @@ public: class Mips32TargetInfoBase : public MipsTargetInfoBase { public: Mips32TargetInfoBase(const std::string& triple) : - MipsTargetInfoBase(triple, "o32") {} + MipsTargetInfoBase(triple, "o32") { + SizeType = UnsignedInt; + PtrDiffType = SignedInt; + } virtual bool setABI(const std::string &Name) { if ((Name == "o32") || (Name == "eabi")) { ABI = Name; -- 2.40.0