diff options
| author | Mikhail Glushenkov <foldr@codedgers.com> | 2008-11-25 21:38:12 +0000 | 
|---|---|---|
| committer | Mikhail Glushenkov <foldr@codedgers.com> | 2008-11-25 21:38:12 +0000 | 
| commit | 98d5ed5cb72e4db9cdacbfa5cdb31626729b7738 (patch) | |
| tree | 45fc6355ae8f9f2f478aa489554d96b34a5fbaef /llvm/tools/llvmc/driver/Error.h | |
| parent | 67630080b9022d0a4ef2da0f13986c876efc51ed (diff) | |
| download | bcm5719-llvm-98d5ed5cb72e4db9cdacbfa5cdb31626729b7738.tar.gz bcm5719-llvm-98d5ed5cb72e4db9cdacbfa5cdb31626729b7738.zip | |
Since the old llvmc was removed, rename llvmc2 to llvmc.
llvm-svn: 60048
Diffstat (limited to 'llvm/tools/llvmc/driver/Error.h')
| -rw-r--r-- | llvm/tools/llvmc/driver/Error.h | 33 | 
1 files changed, 33 insertions, 0 deletions
| diff --git a/llvm/tools/llvmc/driver/Error.h b/llvm/tools/llvmc/driver/Error.h new file mode 100644 index 00000000000..c0aaff1a724 --- /dev/null +++ b/llvm/tools/llvmc/driver/Error.h @@ -0,0 +1,33 @@ +//===--- Error.h - The LLVM Compiler Driver ---------------------*- C++ -*-===// +// +//                     The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open +// Source License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +//  Exception classes for LLVMC. +// +//===----------------------------------------------------------------------===// + +#ifndef LLVM_TOOLS_LLVMC2_ERROR_H +#define LLVM_TOOLS_LLVMC2_ERROR_H + +#include <stdexcept> + +namespace llvmc { + +  class error_code: public std::runtime_error { +    int Code_; +  public: +    error_code (int c) +      : std::runtime_error("Tool returned error code"), Code_(c) +    {} + +    int code() const { return Code_; } +  }; + +} + +#endif //LLVM_TOOLS_LLVMC2_ERROR_H | 

