summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen
diff options
context:
space:
mode:
authorUlrich Weigand <ulrich.weigand@de.ibm.com>2012-10-29 12:20:54 +0000
committerUlrich Weigand <ulrich.weigand@de.ibm.com>2012-10-29 12:20:54 +0000
commit7bcc7ec745b03fc864bea0272879476e8c068950 (patch)
treef1846d10ff5f130e7751cd5db5659392910511d9 /clang/lib/CodeGen
parent59f464661470a320a4c8a51258cf51758e3aac7e (diff)
downloadbcm5719-llvm-7bcc7ec745b03fc864bea0272879476e8c068950.tar.gz
bcm5719-llvm-7bcc7ec745b03fc864bea0272879476e8c068950.zip
Handle '*' and '#' asm constraint modifiers.
llvm-svn: 166924
Diffstat (limited to 'clang/lib/CodeGen')
-rw-r--r--clang/lib/CodeGen/CGStmt.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CGStmt.cpp b/clang/lib/CodeGen/CGStmt.cpp
index 5c1fea4472f..3548dbac6fc 100644
--- a/clang/lib/CodeGen/CGStmt.cpp
+++ b/clang/lib/CodeGen/CGStmt.cpp
@@ -1280,6 +1280,10 @@ SimplifyConstraint(const char *Constraint, const TargetInfo &Target,
case '=': // Will see this and the following in mult-alt constraints.
case '+':
break;
+ case '#': // Ignore the rest of the constraint alternative.
+ while (Constraint[1] && Constraint[1] != ',')
+ Constraint++;
+ break;
case ',':
Result += "|";
break;
OpenPOWER on IntegriCloud