summaryrefslogtreecommitdiffstats
path: root/clang/Driver/RewriteTest.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-03-15 21:10:16 +0000
committerChris Lattner <sabre@nondot.org>2008-03-15 21:10:16 +0000
commit4b08ca8f2e16e7fea0840bc83cb207aa53c5cfd2 (patch)
tree28998c297709e67b0aa3f93d4e88e08a8632e3dd /clang/Driver/RewriteTest.cpp
parent2c7f144ab783dcd2753613ce4cb5c9aa6a9424ef (diff)
downloadbcm5719-llvm-4b08ca8f2e16e7fea0840bc83cb207aa53c5cfd2.tar.gz
bcm5719-llvm-4b08ca8f2e16e7fea0840bc83cb207aa53c5cfd2.zip
switch the VarDecl allocation model to go through ASTContext.
llvm-svn: 48396
Diffstat (limited to 'clang/Driver/RewriteTest.cpp')
-rw-r--r--clang/Driver/RewriteTest.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/Driver/RewriteTest.cpp b/clang/Driver/RewriteTest.cpp
index 652ce1c82c3..dfad8ecccf7 100644
--- a/clang/Driver/RewriteTest.cpp
+++ b/clang/Driver/RewriteTest.cpp
@@ -1744,9 +1744,9 @@ Stmt *RewriteTest::RewriteObjCStringLiteral(ObjCStringLiteral *Exp) {
InsertText(SourceLocation::getFileLoc(MainFileID, 0),
StrObjDecl.c_str(), StrObjDecl.size());
- FileVarDecl *NewVD = new FileVarDecl(SourceLocation(),
+ FileVarDecl *NewVD = FileVarDecl::Create(SourceLocation(),
&Context->Idents.get(S.c_str()), strType,
- VarDecl::Static, NULL);
+ VarDecl::Static, NULL, *Context);
DeclRefExpr *DRE = new DeclRefExpr(NewVD, strType, SourceLocation());
Expr *Unop = new UnaryOperator(DRE, UnaryOperator::AddrOf,
Context->getPointerType(DRE->getType()),
OpenPOWER on IntegriCloud