diff options
author | Craig Topper <craig.topper@gmail.com> | 2015-10-21 02:34:10 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@gmail.com> | 2015-10-21 02:34:10 +0000 |
commit | 55765ca54a994e331ef82667f2188e552915b9bd (patch) | |
tree | 59b861e4791d4618b3c6b480419c7168d4930b2e /clang/lib/CodeGen | |
parent | 1a59c6b2c967e76cd5e5d9884e47da133a430e52 (diff) | |
download | bcm5719-llvm-55765ca54a994e331ef82667f2188e552915b9bd.tar.gz bcm5719-llvm-55765ca54a994e331ef82667f2188e552915b9bd.zip |
Use ArrayRef and MutableArrayRef instead of a pointer and size. NFC
llvm-svn: 250876
Diffstat (limited to 'clang/lib/CodeGen')
-rw-r--r-- | clang/lib/CodeGen/CGStmt.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/clang/lib/CodeGen/CGStmt.cpp b/clang/lib/CodeGen/CGStmt.cpp index 1ca119ef988..f915518c26a 100644 --- a/clang/lib/CodeGen/CGStmt.cpp +++ b/clang/lib/CodeGen/CGStmt.cpp @@ -1587,9 +1587,7 @@ SimplifyConstraint(const char *Constraint, const TargetInfo &Target, assert(OutCons && "Must pass output names to constraints with a symbolic name"); unsigned Index; - bool result = Target.resolveSymbolicName(Constraint, - &(*OutCons)[0], - OutCons->size(), Index); + bool result = Target.resolveSymbolicName(Constraint, *OutCons, Index); assert(result && "Could not resolve symbolic name"); (void)result; Result += llvm::utostr(Index); break; @@ -1744,8 +1742,7 @@ void CodeGenFunction::EmitAsmStmt(const AsmStmt &S) { Name = GAS->getInputName(i); TargetInfo::ConstraintInfo Info(S.getInputConstraint(i), Name); bool IsValid = - getTarget().validateInputConstraint(OutputConstraintInfos.data(), - S.getNumOutputs(), Info); + getTarget().validateInputConstraint(OutputConstraintInfos, Info); assert(IsValid && "Failed to parse input constraint"); (void)IsValid; InputConstraintInfos.push_back(Info); } |