aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/CGStmt.cpp
diff options
context:
space:
mode:
authorChad Rosier <mcrosier@apple.com>2012-07-20 21:44:43 +0000
committerChad Rosier <mcrosier@apple.com>2012-07-20 21:44:43 +0000
commit89770e5640dd5039569ecdc64c61acd9aa22cff9 (patch)
treedb4cbdcc22f21ab042786a4fd6ed29eca76ccc0c /lib/CodeGen/CGStmt.cpp
parentae99b75fbbac1deaccdcc1b326b8fb6b07a1e72d (diff)
Add the mechanics for -fms-inline-asm. No easy way to test at this time.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@160580 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGStmt.cpp')
-rw-r--r--lib/CodeGen/CGStmt.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/CodeGen/CGStmt.cpp b/lib/CodeGen/CGStmt.cpp
index 1d71cddb6f..26a31cdad4 100644
--- a/lib/CodeGen/CGStmt.cpp
+++ b/lib/CodeGen/CGStmt.cpp
@@ -1684,4 +1684,6 @@ void CodeGenFunction::EmitAsmStmt(const AsmStmt &S) {
void CodeGenFunction::EmitMSAsmStmt(const MSAsmStmt &S) {
// MS-style inline assembly is not fully supported, so sema emits a warning.
+ if (!CGM.getCodeGenOpts().EmitMicrosoftInlineAsm)
+ return;
}