]> granicus.if.org Git - clang/commitdiff
Close the paren.
authorFariborz Jahanian <fjahanian@apple.com>
Wed, 21 Mar 2012 00:01:15 +0000 (00:01 +0000)
committerFariborz Jahanian <fjahanian@apple.com>
Wed, 21 Mar 2012 00:01:15 +0000 (00:01 +0000)
// rdar://11076938

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

lib/Rewrite/RewriteModernObjC.cpp

index a164f7464672457479580e9f39fcc144a8501289..101d35ee88c2d3f2d343c3acd93ce8ab8f71c2d4 100644 (file)
@@ -5718,7 +5718,7 @@ static void Write_class_t(ASTContext *Context, std::string &Result,
   Result += ".cache = "; Result += "&_objc_empty_cache"; Result += ";\n";
   Result += "}\n";
   
-  Result += "#pragma section(\".objc_inithooks$B\", long, read, write\n";
+  Result += "#pragma section(\".objc_inithooks$B\", long, read, write)\n";
   Result += "__declspec(allocate(\".objc_inithooks$B\")) ";
   Result += "static void *OBJC_CLASS_SETUP2_$_";
   Result += CDecl->getNameAsString();
@@ -5805,7 +5805,7 @@ static void Write_category_t(RewriteModernObjC &RewriteObj, ASTContext *Context,
   Result += ".cls = "; Result += "&OBJC_CLASS_$_"; Result += ClassName;
   Result += ";\n}\n";
   
-  Result += "#pragma section(\".objc_inithooks$B\", long, read, write\n";
+  Result += "#pragma section(\".objc_inithooks$B\", long, read, write)\n";
   Result += "__declspec(allocate(\".objc_inithooks$B\")) ";
   Result += "static void *OBJC_CATEGORY_SETUP2_$_";
   Result += ClassDecl->getNameAsString();