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
//===----------------------------------------------------------------------===//
10
// Exception classes for llvmc.
12
//===----------------------------------------------------------------------===//
14
#ifndef LLVM_INCLUDE_COMPILER_DRIVER_ERROR_H
15
#define LLVM_INCLUDE_COMPILER_DRIVER_ERROR_H
21
/// error_code - This gets thrown during the compilation process if a tool
22
/// invocation returns a non-zero exit code.
23
class error_code: public std::runtime_error {
27
: std::runtime_error("Tool returned error code"), Code_(c)
30
int code() const { return Code_; }
35
#endif // LLVM_INCLUDE_COMPILER_DRIVER_ERROR_H