diff options
author | Chris Lattner <sabre@nondot.org> | 2008-03-16 01:23:04 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-03-16 01:23:04 +0000 |
commit | cca59d77c4b84fd2da268018dbaf9431a621e75b (patch) | |
tree | 627ecfb917327736fba7732e2a03b9a74b77efcc /lib/Sema/SemaDeclObjC.cpp | |
parent | f962808120bd4cf1c684a0936fa1791ce2be73be (diff) |
Give ObjCProtocolDecl a Create method.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@48410 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaDeclObjC.cpp')
-rw-r--r-- | lib/Sema/SemaDeclObjC.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/Sema/SemaDeclObjC.cpp b/lib/Sema/SemaDeclObjC.cpp index d5d658d4ff..af57d09ce6 100644 --- a/lib/Sema/SemaDeclObjC.cpp +++ b/lib/Sema/SemaDeclObjC.cpp @@ -211,10 +211,10 @@ Sema::DeclTy *Sema::ActOnStartProtocolInterface( } } else { - PDecl = new ObjCProtocolDecl(AtProtoInterfaceLoc, NumProtoRefs, - ProtocolName); + PDecl = ObjCProtocolDecl::Create(Context, AtProtoInterfaceLoc, NumProtoRefs, + ProtocolName); ObjCProtocols[ProtocolName] = PDecl; - } + } if (NumProtoRefs) { /// Check then save referenced protocols @@ -260,7 +260,7 @@ Sema::ActOnForwardProtocolDeclaration(SourceLocation AtProtocolLoc, ObjCProtocolDecl *PDecl = ObjCProtocols[P]; if (!PDecl) { // Not already seen? // FIXME: Pass in the location of the identifier! - PDecl = new ObjCProtocolDecl(AtProtocolLoc, 0, P, true); + PDecl = ObjCProtocolDecl::Create(Context, AtProtocolLoc, 0, P, true); ObjCProtocols[P] = PDecl; } |