]> granicus.if.org Git - clang/commitdiff
[ms-inline asm] Add comments.
authorChad Rosier <mcrosier@apple.com>
Wed, 22 Aug 2012 21:12:19 +0000 (21:12 +0000)
committerChad Rosier <mcrosier@apple.com>
Wed, 22 Aug 2012 21:12:19 +0000 (21:12 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@162396 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Sema/SemaStmtAsm.cpp

index 0827e3d1bc9f1a7f95229c458364dde834c25e8d..ac22f1346d171e7d4196fe219435ef17a0706dc3 100644 (file)
@@ -398,7 +398,9 @@ static void buildMSAsmPieces(std::vector<std::string> &AsmStrings,
     buildMSAsmPieces(AsmStrings[i], Pieces[i]);
 }
 
-// Build the unmodified MSAsmString.
+// Build the unmodified AsmString used by the IR.  Also build the individual
+// asm instruction(s) and place them in the AsmStrings vector; these are fed
+// to the AsmParser.
 static std::string buildMSAsmString(Sema &SemaRef, ArrayRef<Token> AsmToks,
                                     std::vector<std::string> &AsmStrings,
                      std::vector<std::pair<unsigned,unsigned> > &AsmTokRanges) {