pub fn write_output_file<'ll>(
    dcx: &DiagCtxt,
    target: &'ll TargetMachine,
    pm: &PassManager<'ll>,
    m: &'ll Module,
    output: &Path,
    dwo_output: Option<&Path>,
    file_type: FileType,
    self_profiler_ref: &SelfProfilerRef
) -> Result<(), FatalError>