Commit 207f862f authored by Bill Wendling's avatar Bill Wendling
Browse files

Merging r196114:

------------------------------------------------------------------------
r196114 | joerg | 2013-12-02 08:09:34 -0800 (Mon, 02 Dec 2013) | 2 lines

NetBSD uses long derived size_t / ssize_t in all ARM ABIs.

------------------------------------------------------------------------

llvm-svn: 196134
parent aa7e683e
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -3706,15 +3706,17 @@ public:
      : TargetInfo(Triple), ABI("aapcs-linux"), CPU("arm1136j-s"),
        FPMath(FP_Default), IsAAPCS(true) {
    BigEndian = false;
    SizeType = UnsignedInt;
    PtrDiffType = SignedInt;
    switch (getTriple().getOS()) {
    case llvm::Triple::NetBSD:
      SizeType = UnsignedLong;
      PtrDiffType = SignedLong;
      WCharType = SignedInt;
      break;
    default:
      // AAPCS 7.1.1, ARM-Linux ABI 2.4: type of wchar_t is unsigned int.
      WCharType = UnsignedInt;
      SizeType = UnsignedInt;
      PtrDiffType = SignedInt;
      break;
    }