DiagnosticHandler couldn't be implemented as class member function, thus left as static global, but a bit changed.
Pointer to AMDGPUCompiler is passed to DiagnosticHandler in order to use its stream for output.
EmitLinkerError moved to class AMDGPUCompiler.
DiagnosticHandler couldn't be implemented as class member function, thus left as static global, but a bit changed. Pointer to AMDGPUCompiler is passed to DiagnosticHandler in order to use its stream for output. EmitLinkerError moved to class AMDGPUCompiler.