diff options
author | Chad Rosier <mcrosier@apple.com> | 2012-08-20 17:11:53 +0000 |
---|---|---|
committer | Chad Rosier <mcrosier@apple.com> | 2012-08-20 17:11:53 +0000 |
commit | d4e55b8e35e374bbf52664163d3b48a525e9e506 (patch) | |
tree | 5b05de080de7ac5a98a8056d6cf09bb2fbd18eaf /clang/lib/Sema | |
parent | 0a9ea7c70de2db1e8de3f75fbac61d302ef52375 (diff) | |
download | bcm5719-llvm-d4e55b8e35e374bbf52664163d3b48a525e9e506.tar.gz bcm5719-llvm-d4e55b8e35e374bbf52664163d3b48a525e9e506.zip |
[ms-inline asm] Remove old cruft now that MS-style asms their own code path.
llvm-svn: 162210
Diffstat (limited to 'clang/lib/Sema')
-rw-r--r-- | clang/lib/Sema/AnalysisBasedWarnings.cpp | 7 | ||||
-rw-r--r-- | clang/lib/Sema/SemaStmtAsm.cpp | 8 | ||||
-rw-r--r-- | clang/lib/Sema/TreeTransform.h | 8 |
3 files changed, 7 insertions, 16 deletions
diff --git a/clang/lib/Sema/AnalysisBasedWarnings.cpp b/clang/lib/Sema/AnalysisBasedWarnings.cpp index 19a7d6f35c8..93be773f2da 100644 --- a/clang/lib/Sema/AnalysisBasedWarnings.cpp +++ b/clang/lib/Sema/AnalysisBasedWarnings.cpp @@ -182,13 +182,6 @@ static ControlFlowKind CheckFallThrough(AnalysisDeclContext &AC) { HasFakeEdge = true; continue; } - if (const AsmStmt *AS = dyn_cast<AsmStmt>(S)) { - if (AS->isMSAsm()) { - HasFakeEdge = true; - HasLiveReturn = true; - continue; - } - } if (isa<MSAsmStmt>(S)) { // TODO: Verify this is correct. HasFakeEdge = true; diff --git a/clang/lib/Sema/SemaStmtAsm.cpp b/clang/lib/Sema/SemaStmtAsm.cpp index 0a7d980a9f8..591a91c7e51 100644 --- a/clang/lib/Sema/SemaStmtAsm.cpp +++ b/clang/lib/Sema/SemaStmtAsm.cpp @@ -94,7 +94,7 @@ StmtResult Sema::ActOnAsmStmt(SourceLocation AsmLoc, bool IsSimple, unsigned NumInputs, IdentifierInfo **Names, MultiExprArg constraints, MultiExprArg exprs, Expr *asmString, MultiExprArg clobbers, - SourceLocation RParenLoc, bool MSAsm) { + SourceLocation RParenLoc) { unsigned NumClobbers = clobbers.size(); StringLiteral **Constraints = reinterpret_cast<StringLiteral**>(constraints.get()); @@ -199,9 +199,9 @@ StmtResult Sema::ActOnAsmStmt(SourceLocation AsmLoc, bool IsSimple, } AsmStmt *NS = - new (Context) AsmStmt(Context, AsmLoc, IsSimple, IsVolatile, MSAsm, - NumOutputs, NumInputs, Names, Constraints, Exprs, - AsmString, NumClobbers, Clobbers, RParenLoc); + new (Context) AsmStmt(Context, AsmLoc, IsSimple, IsVolatile, NumOutputs, + NumInputs, Names, Constraints, Exprs, AsmString, + NumClobbers, Clobbers, RParenLoc); // Validate the asm string, ensuring it makes sense given the operands we // have. SmallVector<AsmStmt::AsmStringPiece, 8> Pieces; diff --git a/clang/lib/Sema/TreeTransform.h b/clang/lib/Sema/TreeTransform.h index 619ad330b95..05a3c611e9f 100644 --- a/clang/lib/Sema/TreeTransform.h +++ b/clang/lib/Sema/TreeTransform.h @@ -1172,12 +1172,11 @@ public: MultiExprArg Exprs, Expr *AsmString, MultiExprArg Clobbers, - SourceLocation RParenLoc, - bool MSAsm) { + SourceLocation RParenLoc) { return getSema().ActOnAsmStmt(AsmLoc, IsSimple, IsVolatile, NumOutputs, NumInputs, Names, move(Constraints), Exprs, AsmString, Clobbers, - RParenLoc, MSAsm); + RParenLoc); } /// \brief Build a new MS style inline asm statement. @@ -5600,8 +5599,7 @@ TreeTransform<Derived>::TransformAsmStmt(AsmStmt *S) { move_arg(Exprs), AsmString.get(), move_arg(Clobbers), - S->getRParenLoc(), - S->isMSAsm()); + S->getRParenLoc()); } template<typename Derived> |