OpenBSDTargetInfo<X86_32TargetInfo>(triple) {
SizeType = UnsignedLong;
IntPtrType = SignedLong;
+ PtrDiffType = SignedLong;
}
};
} // end anonymous namespace
};
} // end anonymous namespace
+namespace {
+class OpenBSDX86_64TargetInfo : public OpenBSDTargetInfo<X86_64TargetInfo> {
+public:
+ OpenBSDX86_64TargetInfo(const std::string& triple)
+ : OpenBSDTargetInfo<X86_64TargetInfo>(triple) {
+ IntMaxType = SignedLongLong;
+ UIntMaxType = UnsignedLongLong;
+ Int64Type = SignedLongLong;
+ }
+};
+} // end anonymous namespace
+
namespace {
class ARMTargetInfo : public TargetInfo {
enum {
if (isLinux)
return new LinuxTargetInfo<X86_64TargetInfo>(T);
if (isOpenBSD)
- return new OpenBSDTargetInfo<X86_64TargetInfo>(T);
+ return new OpenBSDX86_64TargetInfo(T);
if (isFreeBSD)
return new FreeBSDTargetInfo<X86_64TargetInfo>(T);
if (isSolaris)