diff options
author | Abramo Bagnara <abramo.bagnara@gmail.com> | 2011-03-03 14:20:18 +0000 |
---|---|---|
committer | Abramo Bagnara <abramo.bagnara@gmail.com> | 2011-03-03 14:20:18 +0000 |
commit | 348823aa3655885e34621f3077dbd734022f0b64 (patch) | |
tree | 7b2ba70f7303ed58ae4da3e603658cacbf08e4fc /clang/lib/Sema/SemaDecl.cpp | |
parent | 8e9a126a6c1ba2c0332e4f8eb4e01956096e6f6a (diff) | |
download | bcm5719-llvm-348823aa3655885e34621f3077dbd734022f0b64.tar.gz bcm5719-llvm-348823aa3655885e34621f3077dbd734022f0b64.zip |
Fixed source range for FileScopeAsmDecl. Others source range fixes will follow.
llvm-svn: 126939
Diffstat (limited to 'clang/lib/Sema/SemaDecl.cpp')
-rw-r--r-- | clang/lib/Sema/SemaDecl.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/clang/lib/Sema/SemaDecl.cpp b/clang/lib/Sema/SemaDecl.cpp index 70c405c1323..10d92029f85 100644 --- a/clang/lib/Sema/SemaDecl.cpp +++ b/clang/lib/Sema/SemaDecl.cpp @@ -8024,11 +8024,14 @@ void Sema::ActOnEnumBody(SourceLocation EnumLoc, SourceLocation LBraceLoc, NumPositiveBits, NumNegativeBits); } -Decl *Sema::ActOnFileScopeAsmDecl(SourceLocation Loc, Expr *expr) { +Decl *Sema::ActOnFileScopeAsmDecl(Expr *expr, + SourceLocation StartLoc, + SourceLocation EndLoc) { StringLiteral *AsmString = cast<StringLiteral>(expr); FileScopeAsmDecl *New = FileScopeAsmDecl::Create(Context, CurContext, - Loc, AsmString); + AsmString, StartLoc, + EndLoc); CurContext->addDecl(New); return New; } |