1
//===--- Error.h - The LLVM Compiler Driver ---------------------*- C++ -*-===//
3
// The LLVM Compiler Infrastructure
5
// This file is distributed under the University of Illinois Open
6
// Source License. See LICENSE.TXT for details.
8
//===----------------------------------------------------------------------===//
12
//===----------------------------------------------------------------------===//
14
#ifndef LLVM_INCLUDE_COMPILER_DRIVER_ERROR_H
15
#define LLVM_INCLUDE_COMPILER_DRIVER_ERROR_H
17
#include "llvm/ADT/StringRef.h"
18
#include "llvm/Support/raw_ostream.h"
22
inline void PrintError(llvm::StringRef Err) {
23
extern const char* ProgramName;
24
llvm::errs() << ProgramName << ": " << Err << '\n';
29
#endif // LLVM_INCLUDE_COMPILER_DRIVER_ERROR_H