summaryrefslogtreecommitdiffstats
path: root/clang/Sema/SemaDecl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/Sema/SemaDecl.cpp')
-rw-r--r--clang/Sema/SemaDecl.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/clang/Sema/SemaDecl.cpp b/clang/Sema/SemaDecl.cpp
index cd546f3efc5..00776912b02 100644
--- a/clang/Sema/SemaDecl.cpp
+++ b/clang/Sema/SemaDecl.cpp
@@ -1711,6 +1711,13 @@ void Sema::ActOnEnumBody(SourceLocation EnumLoc, DeclTy *EnumDeclX,
Consumer.HandleTagDeclDefinition(Enum);
}
+Sema::DeclTy *Sema::ActOnFileScopeAsmDecl(SourceLocation Loc,
+ ExprTy *expr) {
+ StringLiteral *AsmString = cast<StringLiteral>((Expr*)expr);
+
+ return new FileScopeAsmDecl(Loc, AsmString);
+}
+
Sema::DeclTy* Sema::ActOnLinkageSpec(SourceLocation Loc,
SourceLocation LBrace,
SourceLocation RBrace,
OpenPOWER on IntegriCloud