]> granicus.if.org Git - clang/commitdiff
[ms-inline asm] Rename getClobber to getClobberStringLiteral. No functional
authorChad Rosier <mcrosier@apple.com>
Mon, 27 Aug 2012 23:28:41 +0000 (23:28 +0000)
committerChad Rosier <mcrosier@apple.com>
Mon, 27 Aug 2012 23:28:41 +0000 (23:28 +0000)
change intended.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@162710 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/AST/RecursiveASTVisitor.h
include/clang/AST/Stmt.h
lib/AST/StmtPrinter.cpp
lib/AST/StmtProfile.cpp
lib/CodeGen/CGStmt.cpp
lib/Sema/TreeTransform.h
lib/Serialization/ASTWriterStmt.cpp
tools/libclang/RecursiveASTVisitor.h

index c24b0a9c436528ae0413f93af95b79d6386f28a1..ae4ff4b1f83c7f59a70e7f29d33c176ab0e19c50 100644 (file)
@@ -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.
   })
index 74bd16969a9349306f12b381633c9a50b2ff4b2d..dad943d021420df819c86c939ed658ff8c35242d 100644 (file)
@@ -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);
index 9a31416371ec45045a59fc6c981f8915ae6b6097..0cf3aaf5580c4fa0cba499e2f6263c0124fc952c 100644 (file)
@@ -422,7 +422,7 @@ void StmtPrinter::VisitGCCAsmStmt(GCCAsmStmt *Node) {
     if (i != 0)
       OS << ", ";
 
-    VisitStringLiteral(Node->getClobber(i));
+    VisitStringLiteral(Node->getClobberStringLiteral(i));
   }
 
   OS << ");\n";
index e4a2e876fb5833bf12ca7df74d92a611d7081a1e..5d7f9f8edee217a362693010d6e394b4980de800 100644 (file)
@@ -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) {
index 747dd5425f4b1a076fff4a7da853ec6f0e3fc260..3ebfbddba444493d9ddfa1863edd6280d5098b73 100644 (file)
@@ -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);
index 4b780f6bc0fdab3d2bfe795d42ce9a620f7915b4..ef58cb62b984225251a335327f51615bf4930c84 100644 (file)
@@ -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());
index 15941783493a72378e4fbee6fe24ca0e470d8211..5fa08d256cdcf612993e129b646b3d9f19beddbb 100644 (file)
@@ -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;
 }
index 6060ab6bffaeecac99a12ccbcadcbc8d9d46b15a..ab96f36205b9606ab851ed8afb2cf67063291fe4 100644 (file)
@@ -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.
   })