From 3171285edf2bf4843bc540aff518944758b54bf4 Mon Sep 17 00:00:00 2001 From: Argyrios Kyrtzidis Date: Tue, 13 Sep 2011 16:05:43 +0000 Subject: [PATCH] In ClangAttrEmitter.cpp emit code that allows attributes to keep their source range. llvm-svn: 139598 --- llvm/utils/TableGen/ClangAttrEmitter.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/llvm/utils/TableGen/ClangAttrEmitter.cpp b/llvm/utils/TableGen/ClangAttrEmitter.cpp index bc6269ba0c0b..b7e26c5a9817 100644 --- a/llvm/utils/TableGen/ClangAttrEmitter.cpp +++ b/llvm/utils/TableGen/ClangAttrEmitter.cpp @@ -540,7 +540,7 @@ void ClangAttrClassEmitter::run(raw_ostream &OS) { ae = Args.end(); OS << "\n public:\n"; - OS << " " << R.getName() << "Attr(SourceLocation L, ASTContext &Ctx\n"; + OS << " " << R.getName() << "Attr(SourceRange R, ASTContext &Ctx\n"; for (ai = Args.begin(); ai != ae; ++ai) { OS << " , "; @@ -549,7 +549,7 @@ void ClangAttrClassEmitter::run(raw_ostream &OS) { } OS << " )\n"; - OS << " : " << SuperName << "(attr::" << R.getName() << ", L)\n"; + OS << " : " << SuperName << "(attr::" << R.getName() << ", R)\n"; for (ai = Args.begin(); ai != ae; ++ai) { OS << " , "; @@ -701,7 +701,7 @@ void ClangAttrPCHReadEmitter::run(raw_ostream &OS) { Args.push_back(A); A->writePCHReadDecls(OS); } - OS << " New = new (Context) " << R.getName() << "Attr(Loc, Context"; + OS << " New = new (Context) " << R.getName() << "Attr(Range, Context"; for (ri = Args.begin(), re = Args.end(); ri != re; ++ri) { OS << ", "; (*ri)->writePCHReadArgs(OS);