summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend
diff options
context:
space:
mode:
authorMike Stump <mrs@apple.com>2010-01-04 22:37:17 +0000
committerMike Stump <mrs@apple.com>2010-01-04 22:37:17 +0000
commit90be58afce42b766dcb0a5bcaa54d136ffb63b58 (patch)
tree0a38051f4638eeeb9aeaac712e51e0851a8f87e2 /clang/lib/Frontend
parentb8e66c3b143b2057bde555468b4f7116f4e6eb55 (diff)
downloadbcm5719-llvm-90be58afce42b766dcb0a5bcaa54d136ffb63b58.tar.gz
bcm5719-llvm-90be58afce42b766dcb0a5bcaa54d136ffb63b58.zip
Remember if the AsmStmt came from Microsoft-style inline assembly code.
llvm-svn: 92526
Diffstat (limited to 'clang/lib/Frontend')
-rw-r--r--clang/lib/Frontend/PCHReaderStmt.cpp1
-rw-r--r--clang/lib/Frontend/PCHWriterStmt.cpp1
2 files changed, 2 insertions, 0 deletions
diff --git a/clang/lib/Frontend/PCHReaderStmt.cpp b/clang/lib/Frontend/PCHReaderStmt.cpp
index ba82d260102..c108f549ab2 100644
--- a/clang/lib/Frontend/PCHReaderStmt.cpp
+++ b/clang/lib/Frontend/PCHReaderStmt.cpp
@@ -304,6 +304,7 @@ unsigned PCHStmtReader::VisitAsmStmt(AsmStmt *S) {
S->setRParenLoc(SourceLocation::getFromRawEncoding(Record[Idx++]));
S->setVolatile(Record[Idx++]);
S->setSimple(Record[Idx++]);
+ S->setMSAsm(Record[Idx++]);
unsigned StackIdx
= StmtStack.size() - (NumOutputs*2 + NumInputs*2 + NumClobbers + 1);
diff --git a/clang/lib/Frontend/PCHWriterStmt.cpp b/clang/lib/Frontend/PCHWriterStmt.cpp
index abf4eaa0f8a..4be9b817ed8 100644
--- a/clang/lib/Frontend/PCHWriterStmt.cpp
+++ b/clang/lib/Frontend/PCHWriterStmt.cpp
@@ -277,6 +277,7 @@ void PCHStmtWriter::VisitAsmStmt(AsmStmt *S) {
Writer.AddSourceLocation(S->getRParenLoc(), Record);
Record.push_back(S->isVolatile());
Record.push_back(S->isSimple());
+ Record.push_back(S->isMSAsm());
Writer.WriteSubStmt(S->getAsmString());
// Outputs
OpenPOWER on IntegriCloud