From e3aac2c864581b2ff51f3b0a44c651be9bd46a33 Mon Sep 17 00:00:00 2001 From: Chad Rosier Date: Tue, 22 Jan 2013 19:38:32 +0000 Subject: [ms-inline asm] Remove the -fenable-experimental-ms-inline-asm flag. MS-style inline assembly can be enable with -fasm-blocks or -fms-extensions alone. llvm-svn: 173186 --- clang/lib/Parse/ParseStmt.cpp | 15 --------------- 1 file changed, 15 deletions(-) (limited to 'clang/lib/Parse/ParseStmt.cpp') diff --git a/clang/lib/Parse/ParseStmt.cpp b/clang/lib/Parse/ParseStmt.cpp index c4c558c3469..0a1eccaa765 100644 --- a/clang/lib/Parse/ParseStmt.cpp +++ b/clang/lib/Parse/ParseStmt.cpp @@ -1771,21 +1771,6 @@ StmtResult Parser::ParseMicrosoftAsmStatement(SourceLocation AsmLoc) { return StmtError(); } - // If MS-style inline assembly is disabled, then build an empty asm. - if (!getLangOpts().EmitMicrosoftInlineAsm) { - Token t; - t.setKind(tok::string_literal); - t.setLiteralData("\"/*FIXME: not done*/\""); - t.clearFlag(Token::NeedsCleaning); - t.setLength(21); - ExprResult AsmString(Actions.ActOnStringLiteral(&t, 1)); - ExprVector Constraints; - ExprVector Exprs; - ExprVector Clobbers; - return Actions.ActOnGCCAsmStmt(AsmLoc, true, true, 0, 0, 0, Constraints, - Exprs, AsmString.take(), Clobbers, EndLoc); - } - // FIXME: We should be passing source locations for better diagnostics. return Actions.ActOnMSAsmStmt(AsmLoc, LBraceLoc, llvm::makeArrayRef(AsmToks), EndLoc); -- cgit v1.2.3