More support for rewriting ObjC intefaces. Still some edge cases to handle...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@43493 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/AST/Decl.cpp b/AST/Decl.cpp
index 804e9cc..106537f 100644
--- a/AST/Decl.cpp
+++ b/AST/Decl.cpp
@@ -295,13 +295,13 @@
///
void ObjcInterfaceDecl::addInstanceVariablesToClass(ObjcIvarDecl **ivars,
unsigned numIvars,
- SourceLocation RB) {
+ SourceLocation RBrac) {
NumIvars = numIvars;
if (numIvars) {
Ivars = new ObjcIvarDecl*[numIvars];
memcpy(Ivars, ivars, numIvars*sizeof(ObjcIvarDecl*));
}
- RBracLoc = RB;
+ setLocEnd(RBrac);
}
/// ObjcAddInstanceVariablesToClassImpl - Checks for correctness of Instance
@@ -335,7 +335,7 @@
ClassMethods = new ObjcMethodDecl*[numClsMembers];
memcpy(ClassMethods, clsMethods, numClsMembers*sizeof(ObjcMethodDecl*));
}
- EndLoc = endLoc;
+ AtEndLoc = endLoc;
}
/// addMethods - Insert instance and methods declarations into