Per PR4506, fix the type of size_t on OpenBSD.

llvm-svn: 74795
This commit is contained in:
Eli Friedman 2009-07-05 18:47:56 +00:00
parent 5674531255
commit e3aa454e2f
1 changed files with 12 additions and 1 deletions

View File

@ -888,6 +888,17 @@ public:
};
} // end anonymous namespace
namespace {
class OpenBSDI386TargetInfo : public OpenBSDTargetInfo<X86_32TargetInfo> {
public:
OpenBSDI386TargetInfo(const std::string& triple) :
OpenBSDTargetInfo<X86_32TargetInfo>(triple) {
SizeType = UnsignedLong;
IntPtrType = SignedLong;
}
};
} // end anonymous namespace
namespace {
class DarwinI386TargetInfo : public DarwinTargetInfo<X86_32TargetInfo> {
public:
@ -1403,7 +1414,7 @@ TargetInfo* TargetInfo::CreateTargetInfo(const std::string &T) {
if (isDragonFly)
return new DragonFlyBSDTargetInfo<X86_32TargetInfo>(T);
if (isOpenBSD)
return new OpenBSDTargetInfo<X86_32TargetInfo>(T);
return new OpenBSDI386TargetInfo(T);
if (isFreeBSD)
return new FreeBSDTargetInfo<X86_32TargetInfo>(T);
if (isSolaris)