aboutsummaryrefslogtreecommitdiff
path: root/lib/Basic/TargetInfo.cpp
diff options
context:
space:
mode:
authorAnders Carlsson <andersca@mac.com>2009-02-28 17:11:49 +0000
committerAnders Carlsson <andersca@mac.com>2009-02-28 17:11:49 +0000
commit066d2ea7521896efc05cce7aa46fdd3a7ba96c28 (patch)
treefdee19e746ce0c43c88d0f5b2c4de3ef1fff9479 /lib/Basic/TargetInfo.cpp
parentebf6443a4f493233f7e8d92b3a991848c8b1c00d (diff)
TargetInfo::validateAsmConstraint now takes a reference to the full constraints string. This will make it possible to support multi-character constraints. No functionality change (for now).
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@65696 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Basic/TargetInfo.cpp')
-rw-r--r--lib/Basic/TargetInfo.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Basic/TargetInfo.cpp b/lib/Basic/TargetInfo.cpp
index 82b6c190cd..923a75d622 100644
--- a/lib/Basic/TargetInfo.cpp
+++ b/lib/Basic/TargetInfo.cpp
@@ -180,7 +180,7 @@ bool TargetInfo::validateOutputConstraint(const char *Name,
while (*Name) {
switch (*Name) {
default:
- if (!validateAsmConstraint(*Name, info)) {
+ if (!validateAsmConstraint(Name, info)) {
// FIXME: We temporarily return false
// so we can add more constraints as we hit it.
// Eventually, an unknown constraint should just be treated as 'g'.
@@ -258,7 +258,7 @@ bool TargetInfo::validateInputConstraint(const char *Name,
// The constraint should have the same info as the respective
// output constraint.
info = (ConstraintInfo)(info|OutputConstraints[i]);
- } else if (!validateAsmConstraint(*Name, info)) {
+ } else if (!validateAsmConstraint(Name, info)) {
// FIXME: This error return is in place temporarily so we can
// add more constraints as we hit it. Eventually, an unknown
// constraint should just be treated as 'g'.