]> granicus.if.org Git - clang/commitdiff
objective-c modern translation. Remove commenting out
authorFariborz Jahanian <fjahanian@apple.com>
Wed, 4 Apr 2012 17:16:15 +0000 (17:16 +0000)
committerFariborz Jahanian <fjahanian@apple.com>
Wed, 4 Apr 2012 17:16:15 +0000 (17:16 +0000)
of extern "C". // rdar://11169733

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@154025 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Rewrite/RewriteModernObjC.cpp

index 45369a95deaefc55eeba74479e70cf7c68c32a5c..e160f0f434e17e8e336024dfd8ac1574a200efdf 100644 (file)
@@ -673,7 +673,10 @@ void RewriteModernObjC::HandleTopLevelSingleDecl(Decl *D) {
     if (PD->isThisDeclarationADefinition())
       RewriteProtocolDecl(PD);
   } else if (LinkageSpecDecl *LSD = dyn_cast<LinkageSpecDecl>(D)) {
-    RewriteLinkageSpec(LSD);
+    // FIXME. This will not work in all situations and leaving it out
+    // is harmless.
+    // RewriteLinkageSpec(LSD);
+    
     // Recurse into linkage specifications
     for (DeclContext::decl_iterator DI = LSD->decls_begin(),
                                  DIEnd = LSD->decls_end();