diff options
author | Anders Carlsson <andersca@mac.com> | 2009-02-28 17:11:49 +0000 |
---|---|---|
committer | Anders Carlsson <andersca@mac.com> | 2009-02-28 17:11:49 +0000 |
commit | 5843635b371fa378b8ccab671e94f3864156c487 (patch) | |
tree | 8c9aeab092dfe7e17321022a0434deb5573f267d /clang/lib/Basic/TargetInfo.cpp | |
parent | 70f41d6f07e160833840290d98fffb36e5e96d12 (diff) | |
download | bcm5719-llvm-5843635b371fa378b8ccab671e94f3864156c487.tar.gz bcm5719-llvm-5843635b371fa378b8ccab671e94f3864156c487.zip |
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).
llvm-svn: 65696
Diffstat (limited to 'clang/lib/Basic/TargetInfo.cpp')
-rw-r--r-- | clang/lib/Basic/TargetInfo.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Basic/TargetInfo.cpp b/clang/lib/Basic/TargetInfo.cpp index 82b6c190cda..923a75d6228 100644 --- a/clang/lib/Basic/TargetInfo.cpp +++ b/clang/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'. |