<html><head><style type='text/css'>p { margin: 0; }</style></head><body><div style='font-family: Times New Roman; font-size: 12pt; color: #000000'>Hi all,<br><br>I am trying to extend a FunctionType to include new parameters. In particular, I want to<br>ensure that the main function has been declared with both argsc and argsv. However<br>there seems to be no easy way to accomplish this: llvm::Function::getFunctionType() returns a<br>a reference to a const object, while modifying only the argument list yields an error during verification<br>since the function type does not match its arguments. Is there any approach that I am missing or<br>a simple workaround to this problem?<br><br>Thanks in advance, and best regards,<br>Gabriel<br></div></body></html>