diff options
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2011-09-13 16:05:43 +0000 |
---|---|---|
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2011-09-13 16:05:43 +0000 |
commit | c9dccb8865d4080b48a37bff6c7dc6bed3f7a4a8 (patch) | |
tree | 56b0f323fdca3fd31f095b4cad2a5b0eeaed1921 /utils | |
parent | 4bbeb18f76a39e3a3224579dcf8c57584e761693 (diff) | |
download | external_llvm-c9dccb8865d4080b48a37bff6c7dc6bed3f7a4a8.zip external_llvm-c9dccb8865d4080b48a37bff6c7dc6bed3f7a4a8.tar.gz external_llvm-c9dccb8865d4080b48a37bff6c7dc6bed3f7a4a8.tar.bz2 |
In ClangAttrEmitter.cpp emit code that allows attributes to keep their source range.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@139598 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils')
-rw-r--r-- | utils/TableGen/ClangAttrEmitter.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/utils/TableGen/ClangAttrEmitter.cpp b/utils/TableGen/ClangAttrEmitter.cpp index bc6269b..b7e26c5 100644 --- a/utils/TableGen/ClangAttrEmitter.cpp +++ b/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); |