diff options
Diffstat (limited to 'lib/Basic/TargetInfo.cpp')
| -rw-r--r-- | lib/Basic/TargetInfo.cpp | 8 | 
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/Basic/TargetInfo.cpp b/lib/Basic/TargetInfo.cpp index db5941a5d921..83d4e2bf63c9 100644 --- a/lib/Basic/TargetInfo.cpp +++ b/lib/Basic/TargetInfo.cpp @@ -24,7 +24,8 @@ using namespace clang;  static const LangAS::Map DefaultAddrSpaceMap = { 0 };  // TargetInfo Constructor. -TargetInfo::TargetInfo(const std::string &T) : Triple(T) { +TargetInfo::TargetInfo(const std::string &T) : TargetOpts(), Triple(T) +{    // Set defaults.  Defaults are set for a 32-bit RISC platform, like PPC or    // SPARC.  These should be overridden by concrete targets as needed.    BigEndian = true; @@ -59,6 +60,7 @@ TargetInfo::TargetInfo(const std::string &T) : Triple(T) {    Char32Type = UnsignedInt;    Int64Type = SignedLongLong;    SigAtomicType = SignedInt; +  ProcessIDType = SignedInt;    UseSignedCharForObjCBool = true;    UseBitFieldTypeAlignment = true;    UseZeroLengthBitfieldAlignment = false; @@ -363,6 +365,8 @@ bool TargetInfo::validateOutputConstraint(ConstraintInfo &Info) const {        break;      case '?': // Disparage slightly code.      case '!': // Disparage severely. +    case '#': // Ignore as constraint. +    case '*': // Ignore for choosing register preferences.        break;  // Pass them.      } @@ -482,6 +486,8 @@ bool TargetInfo::validateInputConstraint(ConstraintInfo *OutputConstraints,        break;      case '?': // Disparage slightly code.      case '!': // Disparage severely. +    case '#': // Ignore as constraint. +    case '*': // Ignore for choosing register preferences.        break;  // Pass them.      }  | 
