[cfe-commits] r74795 - /cfe/trunk/lib/Basic/Targets.cpp
Eli Friedman
eli.friedman at gmail.com
Sun Jul 5 11:47:56 PDT 2009
Author: efriedma
Date: Sun Jul 5 13:47:56 2009
New Revision: 74795
URL: http://llvm.org/viewvc/llvm-project?rev=74795&view=rev
Log:
Per PR4506, fix the type of size_t on OpenBSD.
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=74795&r1=74794&r2=74795&view=diff
==============================================================================
--- cfe/trunk/lib/Basic/Targets.cpp (original)
+++ cfe/trunk/lib/Basic/Targets.cpp Sun Jul 5 13:47:56 2009
@@ -889,6 +889,17 @@
} // 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:
DarwinI386TargetInfo(const std::string& triple) :
@@ -1403,7 +1414,7 @@
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)
More information about the cfe-commits
mailing list