2011-02-20 08:06:31 -05:00
|
|
|
//===--- Phases.cpp - Transformations on Driver Types ---------------------===//
|
2009-06-02 13:58:47 -04:00
|
|
|
//
|
2019-08-20 16:50:49 -04: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 13:58:47 -04:00
|
|
|
//
|
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
|
|
#include "clang/Driver/Phases.h"
|
2011-10-20 17:14:49 -04:00
|
|
|
#include "llvm/Support/ErrorHandling.h"
|
2009-06-02 13:58:47 -04: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";
|
2015-01-18 11:23:48 -05:00
|
|
|
case Backend: return "backend";
|
2009-06-02 13:58:47 -04:00
|
|
|
case Assemble: return "assembler";
|
|
|
|
|
case Link: return "linker";
|
2019-10-23 13:52:09 -04:00
|
|
|
case IfsMerge: return "ifsmerger";
|
2009-06-02 13:58:47 -04:00
|
|
|
}
|
|
|
|
|
|
2011-10-20 17:14:49 -04:00
|
|
|
llvm_unreachable("Invalid phase id.");
|
2009-06-02 13:58:47 -04:00
|
|
|
}
|