Avoid output on successful execution of the SWIG scripts

Standard practice for tools like this upon success is no output and a
zero return value.

llvm-svn: 232841
This commit is contained in:
Ed Maste 2015-03-20 19:59:35 +00:00
parent ae9d841c89
commit b933fb2c0b
2 changed files with 4 additions and 8 deletions

View File

@ -129,11 +129,9 @@ def get_help_information():
def program_exit_success( vnResult, vMsg ):
strMsg = "";
if vMsg.__len__() == 0:
strMsg = "%s (%d)" % (strExitMsgSuccess, vnResult);
else:
if vMsg.__len__() != 0:
strMsg = "%s: %s (%d)" % (strExitMsgSuccess, vMsg, vnResult);
print strMsg;
print strMsg;
sys.exit( vnResult );

View File

@ -100,11 +100,9 @@ Usage:\n\
def program_exit_success( vnResult, vMsg ):
strMsg = "";
if vMsg.__len__() == 0:
strMsg = "%s (%d)" % (strExitMsgSuccess, vnResult);
else:
if vMsg.__len__() != 0:
strMsg = "%s: %s (%d)" % (strExitMsgSuccess, vMsg, vnResult);
print strMsg;
print strMsg;
sys.exit( vnResult );