diff options
author | Chad Rosier <mcrosier@apple.com> | 2012-07-20 21:44:43 +0000 |
---|---|---|
committer | Chad Rosier <mcrosier@apple.com> | 2012-07-20 21:44:43 +0000 |
commit | 7a96c778248418286fad39858f5e947a574ba606 (patch) | |
tree | 47ec1a52df0a96b8f58905d2904b169c3c8b0fd8 /clang/lib/CodeGen/CGStmt.cpp | |
parent | 00586de436e092b4a699ae5e1f0b3723814f0e8b (diff) | |
download | bcm5719-llvm-7a96c778248418286fad39858f5e947a574ba606.tar.gz bcm5719-llvm-7a96c778248418286fad39858f5e947a574ba606.zip |
Add the mechanics for -fms-inline-asm. No easy way to test at this time.
llvm-svn: 160580
Diffstat (limited to 'clang/lib/CodeGen/CGStmt.cpp')
-rw-r--r-- | clang/lib/CodeGen/CGStmt.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CGStmt.cpp b/clang/lib/CodeGen/CGStmt.cpp index 1d71cddb6fc..26a31cdad4b 100644 --- a/clang/lib/CodeGen/CGStmt.cpp +++ b/clang/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; } |