diff options
author | Douglas Gregor <dgregor@apple.com> | 2010-08-11 12:19:30 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2010-08-11 12:19:30 +0000 |
commit | 1c28331b57df1b99af4ff5dcb409cafbe171795c (patch) | |
tree | cbef2c4e46eb07858e8707ce48629bf73023ea67 /clang/lib/AST/DeclPrinter.cpp | |
parent | 6a98131468162950c22a866d736e66e300fb2803 (diff) | |
download | bcm5719-llvm-1c28331b57df1b99af4ff5dcb409cafbe171795c.tar.gz bcm5719-llvm-1c28331b57df1b99af4ff5dcb409cafbe171795c.zip |
Speculatively revert r110610 " Make ObjCInterfaceDecl redeclarable,
and create separate decl nodes for forward declarations and the
definition," which appears to be causing significant Objective-C
breakage.
llvm-svn: 110803
Diffstat (limited to 'clang/lib/AST/DeclPrinter.cpp')
-rw-r--r-- | clang/lib/AST/DeclPrinter.cpp | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/clang/lib/AST/DeclPrinter.cpp b/clang/lib/AST/DeclPrinter.cpp index d3ebc8f508e..fae1e724a17 100644 --- a/clang/lib/AST/DeclPrinter.cpp +++ b/clang/lib/AST/DeclPrinter.cpp @@ -727,19 +727,12 @@ void DeclPrinter::VisitObjCImplementationDecl(ObjCImplementationDecl *OID) { void DeclPrinter::VisitObjCInterfaceDecl(ObjCInterfaceDecl *OID) { std::string I = OID->getNameAsString(); - - if (OID->isForwardDecl()) { - // These shouldn't be directly visited, but in case they are, write them - // as an @class declaration. - Out << "@class " << I; - return; - } - ObjCInterfaceDecl *SID = OID->getSuperClass(); - Out << "@interface " << I; if (SID) - Out << " : " << SID; + Out << "@interface " << I << " : " << SID; + else + Out << "@interface " << I; // Protocols? const ObjCList<ObjCProtocolDecl> &Protocols = OID->getReferencedProtocols(); |