summaryrefslogtreecommitdiffstats
path: root/clang/lib
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
commiteb7deb2851d6877fc711c80beafdf93c951cb12c (patch)
tree9c8991705148a92a41789c41a4668d3d27a6a8b1 /clang/lib
parent53d79d9905bcbf27e8e11cbddeb56c1ed4696339 (diff)
downloadbcm5719-llvm-eb7deb2851d6877fc711c80beafdf93c951cb12c.tar.gz
bcm5719-llvm-eb7deb2851d6877fc711c80beafdf93c951cb12c.zip
[ms-inline asm] Add comments.
llvm-svn: 162396
Diffstat (limited to 'clang/lib')
-rw-r--r--clang/lib/Sema/SemaStmtAsm.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaStmtAsm.cpp b/clang/lib/Sema/SemaStmtAsm.cpp
index 0827e3d1bc9..ac22f1346d1 100644
--- a/clang/lib/Sema/SemaStmtAsm.cpp
+++ b/clang/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) {
OpenPOWER on IntegriCloud