From: Alp Toker Date: Sun, 8 Jun 2014 05:11:37 +0000 (+0000) Subject: Don't include llvm/MC/MCParser throughout all of Sema X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f5b2ca5410df2e33029ff56e2d71d86441613136;p=clang Don't include llvm/MC/MCParser throughout all of Sema Requires LLVM r210417. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@210418 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/Sema/Sema.h b/include/clang/Sema/Sema.h index c395784d18..eb98041419 100644 --- a/include/clang/Sema/Sema.h +++ b/include/clang/Sema/Sema.h @@ -48,7 +48,6 @@ #include "llvm/ADT/SmallPtrSet.h" #include "llvm/ADT/SmallVector.h" #include "llvm/ADT/TinyPtrVector.h" -#include "llvm/MC/MCParser/MCAsmParser.h" #include #include #include @@ -59,6 +58,7 @@ namespace llvm { template struct DenseMapInfo; template class DenseSet; class SmallBitVector; + class InlineAsmIdentifierInfo; } namespace clang { @@ -928,9 +928,6 @@ public: bool OldFPContractState : 1; }; - typedef llvm::MCAsmParserSemaCallback::InlineAsmIdentifierInfo - InlineAsmIdentifierInfo; - void addImplicitTypedef(StringRef Name, QualType T); public: @@ -3103,7 +3100,7 @@ public: ExprResult LookupInlineAsmIdentifier(CXXScopeSpec &SS, SourceLocation TemplateKWLoc, UnqualifiedId &Id, - InlineAsmIdentifierInfo &Info, + llvm::InlineAsmIdentifierInfo &Info, bool IsUnevaluatedContext); bool LookupInlineAsmField(StringRef Base, StringRef Member, unsigned &Offset, SourceLocation AsmLoc); diff --git a/lib/Parse/ParseStmt.cpp b/lib/Parse/ParseStmt.cpp index 210963ec0c..0e1d4d93c7 100644 --- a/lib/Parse/ParseStmt.cpp +++ b/lib/Parse/ParseStmt.cpp @@ -1819,7 +1819,7 @@ namespace { } void *LookupInlineAsmIdentifier(StringRef &LineBuf, - InlineAsmIdentifierInfo &Info, + llvm::InlineAsmIdentifierInfo &Info, bool IsUnevaluatedContext) override { // Collect the desired tokens. SmallVector LineToks; diff --git a/lib/Sema/SemaStmtAsm.cpp b/lib/Sema/SemaStmtAsm.cpp index 276ead78be..fdab947a47 100644 --- a/lib/Sema/SemaStmtAsm.cpp +++ b/lib/Sema/SemaStmtAsm.cpp @@ -21,6 +21,7 @@ #include "clang/Sema/ScopeInfo.h" #include "llvm/ADT/ArrayRef.h" #include "llvm/ADT/BitVector.h" +#include "llvm/MC/MCParser/MCAsmParser.h" using namespace clang; using namespace sema; @@ -370,7 +371,7 @@ StmtResult Sema::ActOnGCCAsmStmt(SourceLocation AsmLoc, bool IsSimple, ExprResult Sema::LookupInlineAsmIdentifier(CXXScopeSpec &SS, SourceLocation TemplateKWLoc, UnqualifiedId &Id, - InlineAsmIdentifierInfo &Info, + llvm::InlineAsmIdentifierInfo &Info, bool IsUnevaluatedContext) { Info.clear();