Daniel Dunbar | 2fe63e6 | 2009-03-12 18:40:18 +0000 | [diff] [blame] | 1 | //===--- Action.cpp - Abstract compilation steps ------------------------*-===// |
| 2 | // |
| 3 | // The LLVM Compiler Infrastructure |
| 4 | // |
| 5 | // This file is distributed under the University of Illinois Open Source |
| 6 | // License. See LICENSE.TXT for details. |
| 7 | // |
| 8 | //===----------------------------------------------------------------------===// |
| 9 | |
| 10 | #include "clang/Driver/Action.h" |
| 11 | |
| 12 | #include <cassert> |
| 13 | using namespace clang::driver; |
| 14 | |
| 15 | Action::~Action() {} |
Daniel Dunbar | 85da007 | 2009-03-13 12:17:08 +0000 | [diff] [blame^] | 16 | |
| 17 | const char *Action::getClassName(ActionClass AC) { |
| 18 | switch (AC) { |
| 19 | case InputClass: return "input"; |
| 20 | case BindArchClass: return "bind-arch"; |
| 21 | case PreprocessJobClass: return "preprocess"; |
| 22 | case PrecompileJobClass: return "precompile"; |
| 23 | case AnalyzeJobClass: return "analyze"; |
| 24 | case CompileJobClass: return "compile"; |
| 25 | case AssembleJobClass: return "assemble"; |
| 26 | case LinkJobClass: return "link"; |
| 27 | case LipoJobClass: return "lipo"; |
| 28 | } |
| 29 | |
| 30 | assert(0 && "invalid class"); |
| 31 | return 0; |
| 32 | } |