зеркало из https://github.com/microsoft/clang-1.git
[ms-inline asm] Rename getClobber to getClobberStringLiteral. No functional
change intended. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@162710 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Родитель
06d4368428
Коммит
5c7f59445a
|
@ -1836,7 +1836,7 @@ DEF_TRAVERSE_STMT(GCCAsmStmt, {
|
|||
TRY_TO(TraverseStmt(S->getOutputConstraintLiteral(I)));
|
||||
}
|
||||
for (unsigned I = 0, E = S->getNumClobbers(); I < E; ++I) {
|
||||
TRY_TO(TraverseStmt(S->getClobber(I)));
|
||||
TRY_TO(TraverseStmt(S->getClobberStringLiteral(I)));
|
||||
}
|
||||
// children() iterates over inputExpr and outputExpr.
|
||||
})
|
||||
|
|
|
@ -1644,8 +1644,10 @@ public:
|
|||
int getNamedOperand(StringRef SymbolicName) const;
|
||||
|
||||
unsigned getNumClobbers() const { return NumClobbers; }
|
||||
StringLiteral *getClobber(unsigned i) { return Clobbers[i]; }
|
||||
const StringLiteral *getClobber(unsigned i) const { return Clobbers[i]; }
|
||||
StringLiteral *getClobberStringLiteral(unsigned i) { return Clobbers[i]; }
|
||||
const StringLiteral *getClobberStringLiteral(unsigned i) const {
|
||||
return Clobbers[i];
|
||||
}
|
||||
|
||||
SourceRange getSourceRange() const LLVM_READONLY {
|
||||
return SourceRange(AsmLoc, RParenLoc);
|
||||
|
|
|
@ -422,7 +422,7 @@ void StmtPrinter::VisitGCCAsmStmt(GCCAsmStmt *Node) {
|
|||
if (i != 0)
|
||||
OS << ", ";
|
||||
|
||||
VisitStringLiteral(Node->getClobber(i));
|
||||
VisitStringLiteral(Node->getClobberStringLiteral(i));
|
||||
}
|
||||
|
||||
OS << ");\n";
|
||||
|
|
|
@ -175,7 +175,7 @@ void StmtProfiler::VisitGCCAsmStmt(const GCCAsmStmt *S) {
|
|||
}
|
||||
ID.AddInteger(S->getNumClobbers());
|
||||
for (unsigned I = 0, N = S->getNumClobbers(); I != N; ++I)
|
||||
VisitStringLiteral(S->getClobber(I));
|
||||
VisitStringLiteral(S->getClobberStringLiteral(I));
|
||||
}
|
||||
|
||||
void StmtProfiler::VisitMSAsmStmt(const MSAsmStmt *S) {
|
||||
|
|
|
@ -1581,7 +1581,7 @@ void CodeGenFunction::EmitGCCAsmStmt(const GCCAsmStmt &S) {
|
|||
|
||||
// Clobbers
|
||||
for (unsigned i = 0, e = S.getNumClobbers(); i != e; i++) {
|
||||
StringRef Clobber = S.getClobber(i)->getString();
|
||||
StringRef Clobber = S.getClobberStringLiteral(i)->getString();
|
||||
|
||||
if (Clobber != "memory" && Clobber != "cc")
|
||||
Clobber = Target.getNormalizedGCCRegisterName(Clobber);
|
||||
|
|
|
@ -5568,7 +5568,7 @@ TreeTransform<Derived>::TransformGCCAsmStmt(GCCAsmStmt *S) {
|
|||
|
||||
// Go through the clobbers.
|
||||
for (unsigned I = 0, E = S->getNumClobbers(); I != E; ++I)
|
||||
Clobbers.push_back(S->getClobber(I));
|
||||
Clobbers.push_back(S->getClobberStringLiteral(I));
|
||||
|
||||
// No need to transform the asm string literal.
|
||||
AsmString = SemaRef.Owned(S->getAsmString());
|
||||
|
|
|
@ -245,7 +245,7 @@ void ASTStmtWriter::VisitGCCAsmStmt(GCCAsmStmt *S) {
|
|||
|
||||
// Clobbers
|
||||
for (unsigned I = 0, N = S->getNumClobbers(); I != N; ++I)
|
||||
Writer.AddStmt(S->getClobber(I));
|
||||
Writer.AddStmt(S->getClobberStringLiteral(I));
|
||||
|
||||
Code = serialization::STMT_GCCASM;
|
||||
}
|
||||
|
|
|
@ -1762,7 +1762,7 @@ DEF_TRAVERSE_STMT(GCCAsmStmt, {
|
|||
StmtQueue.queue(S->getOutputConstraintLiteral(I));
|
||||
}
|
||||
for (unsigned I = 0, E = S->getNumClobbers(); I < E; ++I) {
|
||||
StmtQueue.queue(S->getClobber(I));
|
||||
StmtQueue.queue(S->getClobberStringLiteral(I));
|
||||
}
|
||||
// children() iterates over inputExpr and outputExpr.
|
||||
})
|
||||
|
|
Загрузка…
Ссылка в новой задаче