aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChad Rosier <mcrosier@apple.com>2012-08-22 21:12:19 +0000
committerChad Rosier <mcrosier@apple.com>2012-08-22 21:12:19 +0000
commit682ad162f144ff8e8e5303d30bc48b6a6a41d0d6 (patch)
treeca035e2d28a80dc7f2742235c74452a539c880c6
parent358ab765f36f70d0744ede7dc35ce74c0911e77d (diff)
[ms-inline asm] Add comments.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@162396 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Sema/SemaStmtAsm.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/Sema/SemaStmtAsm.cpp b/lib/Sema/SemaStmtAsm.cpp
index 0827e3d1bc..ac22f1346d 100644
--- a/lib/Sema/SemaStmtAsm.cpp
+++ b/lib/Sema/SemaStmtAsm.cpp
@@ -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) {