diff options
author | Anders Carlsson <andersca@mac.com> | 2007-12-08 19:32:57 +0000 |
---|---|---|
committer | Anders Carlsson <andersca@mac.com> | 2007-12-08 19:32:57 +0000 |
commit | 44fe49c9ccf29b8e9b66ce1f2375be6ec591c03c (patch) | |
tree | 914b45869024ea5d60e881e1dfba5e9582cb3317 /Basic/TargetInfo.cpp | |
parent | c92942c5fe8330c8c090c84ecde31ee8240c95bb (diff) |
Add getTargetPrefix to TargetInfo, to be used with target specific intrinsics.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44712 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'Basic/TargetInfo.cpp')
-rw-r--r-- | Basic/TargetInfo.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Basic/TargetInfo.cpp b/Basic/TargetInfo.cpp index 6038e614a5..fcaeccffc0 100644 --- a/Basic/TargetInfo.cpp +++ b/Basic/TargetInfo.cpp @@ -56,6 +56,10 @@ const char* TargetInfo::getTargetTriple() const { return PrimaryTarget->getTargetTriple(); } +const char *TargetInfo::getTargetPrefix() const { + return PrimaryTarget->getTargetPrefix(); +} + /// DiagnoseNonPortability - When a use of a non-portable target feature is /// used, this method emits the diagnostic and marks the translation unit as /// non-portable. @@ -417,6 +421,9 @@ bool TargetInfo::validateInputConstraint(const char *Name, // Eventually, an unknown constraint should just be treated as 'g'. assert(0 && "Unknown input constraint type!"); } + case '%': // commutative + // FIXME: Fail if % is used with the last operand. + break; case 'i': // immediate integer. break; case 'r': // general register. |