mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-21 16:31:16 +00:00
b7f3bfc559
- Can be used to generate the substitution values we currently use for the various target related .def files. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@144345 91177308-0d34-0410-b5e6-96231b3b80d8
14 lines
466 B
Python
14 lines
466 B
Python
import os
|
|
import sys
|
|
|
|
def _write_message(kind, message):
|
|
program = os.path.basename(sys.argv[0])
|
|
print >>sys.stderr, '%s: %s: %s' % (program, kind, message)
|
|
|
|
note = lambda message: _write_message('note', message)
|
|
warning = lambda message: _write_message('warning', message)
|
|
error = lambda message: _write_message('error', message)
|
|
fatal = lambda message: (_write_message('fatal error', message), sys.exit(1))
|
|
|
|
__all__ = ['note', 'warning', 'error', 'fatal']
|