[cfe-commits] r143775 - /cfe/trunk/lib/Basic/Targets.cpp
Akira Hatanaka
ahatanaka at mips.com
Fri Nov 4 18:48:34 PDT 2011
Author: ahatanak
Date: Fri Nov 4 20:48:34 2011
New Revision: 143775
URL: http://llvm.org/viewvc/llvm-project?rev=143775&view=rev
Log:
Move definitions of SizeType and PtrDiffType to Mips32TargetInfoBase.
Modified:
cfe/trunk/lib/Basic/Targets.cpp
Modified: cfe/trunk/lib/Basic/Targets.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Basic/Targets.cpp?rev=143775&r1=143774&r2=143775&view=diff
==============================================================================
--- cfe/trunk/lib/Basic/Targets.cpp (original)
+++ cfe/trunk/lib/Basic/Targets.cpp Fri Nov 4 20:48:34 2011
@@ -3029,10 +3029,7 @@
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 @@
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;
More information about the cfe-commits
mailing list