summaryrefslogtreecommitdiffstats
path: root/contrib/llvm/tools/clang/lib/Basic
diff options
context:
space:
mode:
authorandrew <andrew@FreeBSD.org>2012-12-23 21:41:39 +0000
committerandrew <andrew@FreeBSD.org>2012-12-23 21:41:39 +0000
commitedc5efb0c38c751969af4edb3fb5d2e9067654de (patch)
tree5e6f98be05a2099832b5f7f2ffc2cad3f99cbc22 /contrib/llvm/tools/clang/lib/Basic
parent76534720131b94d6a1c11f1d28c122a2bd86c924 (diff)
downloadFreeBSD-src-edc5efb0c38c751969af4edb3fb5d2e9067654de.zip
FreeBSD-src-edc5efb0c38c751969af4edb3fb5d2e9067654de.tar.gz
Pull in r170096 from upstream clang trunk:
Initial support for FreeBSD on ARM.
Diffstat (limited to 'contrib/llvm/tools/clang/lib/Basic')
-rw-r--r--contrib/llvm/tools/clang/lib/Basic/Targets.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/contrib/llvm/tools/clang/lib/Basic/Targets.cpp b/contrib/llvm/tools/clang/lib/Basic/Targets.cpp
index f36ef82..84a6daf 100644
--- a/contrib/llvm/tools/clang/lib/Basic/Targets.cpp
+++ b/contrib/llvm/tools/clang/lib/Basic/Targets.cpp
@@ -3078,7 +3078,9 @@ public:
// name.
if (Name == "apcs-gnu") {
DoubleAlign = LongLongAlign = LongDoubleAlign = SuitableAlign = 32;
- SizeType = UnsignedLong;
+ // size_t is unsigned int on FreeBSD.
+ if (getTriple().getOS() != llvm::Triple::FreeBSD)
+ SizeType = UnsignedLong;
// Revert to using SignedInt on apcs-gnu to comply with existing behaviour.
WCharType = SignedInt;
OpenPOWER on IntegriCloud