2021SC@SDUSC
今天分析的是src/mapleall/maple_driver/src/compiler_selector.cpp的代码。
它的头文件是
#include "compiler_selector.h"
#include <algorithm>
#include "mpl_logging.h"
在compiler_selector.h这个头文件中定义了两个类CompilerSelector和CompilerSelectorImpl类。
class CompilerSelector {
public:
CompilerSelector() = default;
virtual ~CompilerSelector() = default;
virtual ErrorCode Select(const SupportedCompilers&, const MplOptions&, std::vector<Compiler*>&) const {
return kErrorToolNotFound;
}
};
class CompilerSelectorImpl : public CompilerSelector {
public:
CompilerSelectorImpl() =