freebsd_amp_hwpstate/clang/lib/Driver/Phases.cpp

28 lines
857 B
C++
Raw Normal View History

//===--- Phases.cpp - Transformations on Driver Types ---------------------===//
2009-06-02 17:58:47 +00:00
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
2009-06-02 17:58:47 +00:00
//
//===----------------------------------------------------------------------===//
#include "clang/Driver/Phases.h"
#include "llvm/Support/ErrorHandling.h"
2009-06-02 17:58:47 +00:00
#include <cassert>
using namespace clang::driver;
const char *phases::getPhaseName(ID Id) {
switch (Id) {
case Preprocess: return "preprocessor";
case Precompile: return "precompiler";
case Compile: return "compiler";
case Backend: return "backend";
2009-06-02 17:58:47 +00:00
case Assemble: return "assembler";
case Link: return "linker";
case IfsMerge: return "ifsmerger";
2009-06-02 17:58:47 +00:00
}
llvm_unreachable("Invalid phase id.");
2009-06-02 17:58:47 +00:00
}