modern objective-c translator: Change declaration of
all objc_msgSend unctions to void parameters and void return. // rdar://11094890 llvm-svn: 153227
This commit is contained in:
		
							parent
							
								
									ba4d0871f7
								
							
						
					
					
						commit
						167384d0da
					
				| 
						 | 
					@ -5089,18 +5089,16 @@ void RewriteModernObjC::Initialize(ASTContext &context) {
 | 
				
			||||||
  if (LangOpts.MicrosoftExt) {
 | 
					  if (LangOpts.MicrosoftExt) {
 | 
				
			||||||
    Preamble += "#define __OBJC_RW_DLLIMPORT extern \"C\" __declspec(dllimport)\n";
 | 
					    Preamble += "#define __OBJC_RW_DLLIMPORT extern \"C\" __declspec(dllimport)\n";
 | 
				
			||||||
    Preamble += "#define __OBJC_RW_STATICIMPORT extern \"C\"\n";
 | 
					    Preamble += "#define __OBJC_RW_STATICIMPORT extern \"C\"\n";
 | 
				
			||||||
  } else
 | 
					  } 
 | 
				
			||||||
 | 
					  else
 | 
				
			||||||
    Preamble += "#define __OBJC_RW_DLLIMPORT extern\n";
 | 
					    Preamble += "#define __OBJC_RW_DLLIMPORT extern\n";
 | 
				
			||||||
  Preamble += "__OBJC_RW_DLLIMPORT struct objc_object *objc_msgSend";
 | 
					  
 | 
				
			||||||
  Preamble += "(struct objc_object *, struct objc_selector *, ...);\n";
 | 
					  Preamble += "__OBJC_RW_DLLIMPORT void objc_msgSend(void);\n";
 | 
				
			||||||
  Preamble += "__OBJC_RW_DLLIMPORT struct objc_object *objc_msgSendSuper";
 | 
					  Preamble += "__OBJC_RW_DLLIMPORT void objc_msgSendSuper(void);\n";
 | 
				
			||||||
  Preamble += "(struct objc_super *, struct objc_selector *, ...);\n";
 | 
					  Preamble += "__OBJC_RW_DLLIMPORT void objc_msgSend_stret(void);\n";
 | 
				
			||||||
  Preamble += "__OBJC_RW_DLLIMPORT struct objc_object* objc_msgSend_stret";
 | 
					  Preamble += "__OBJC_RW_DLLIMPORT void objc_msgSendSuper_stret(void);\n";
 | 
				
			||||||
  Preamble += "(struct objc_object *, struct objc_selector *, ...);\n";
 | 
					  Preamble += "__OBJC_RW_DLLIMPORT void objc_msgSend_fpret(void);\n";
 | 
				
			||||||
  Preamble += "__OBJC_RW_DLLIMPORT struct objc_object* objc_msgSendSuper_stret";
 | 
					
 | 
				
			||||||
  Preamble += "(struct objc_super *, struct objc_selector *, ...);\n";
 | 
					 | 
				
			||||||
  Preamble += "__OBJC_RW_DLLIMPORT double objc_msgSend_fpret";
 | 
					 | 
				
			||||||
  Preamble += "(struct objc_object *, struct objc_selector *, ...);\n";
 | 
					 | 
				
			||||||
  Preamble += "__OBJC_RW_DLLIMPORT struct objc_object *objc_getClass";
 | 
					  Preamble += "__OBJC_RW_DLLIMPORT struct objc_object *objc_getClass";
 | 
				
			||||||
  Preamble += "(const char *);\n";
 | 
					  Preamble += "(const char *);\n";
 | 
				
			||||||
  Preamble += "__OBJC_RW_DLLIMPORT struct objc_class *class_getSuperclass";
 | 
					  Preamble += "__OBJC_RW_DLLIMPORT struct objc_class *class_getSuperclass";
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue