forked from OSchip/llvm-project
[PS4][NFC] Rename classes to align with prevailing practice
Rename classes Assemble -> Assembler, Link -> Linker, for consistency with names other toolchains use.
This commit is contained in:
parent
e6d56802f8
commit
a5c847e8cf
|
@ -54,11 +54,11 @@ void tools::PScpu::addProfileRTArgs(const ToolChain &TC, const ArgList &Args,
|
|||
Args, "--dependent-lib=", PSTC.getProfileRTLibName(), ""));
|
||||
}
|
||||
|
||||
void tools::PScpu::Assemble::ConstructJob(Compilation &C, const JobAction &JA,
|
||||
const InputInfo &Output,
|
||||
const InputInfoList &Inputs,
|
||||
const ArgList &Args,
|
||||
const char *LinkingOutput) const {
|
||||
void tools::PScpu::Assembler::ConstructJob(Compilation &C, const JobAction &JA,
|
||||
const InputInfo &Output,
|
||||
const InputInfoList &Inputs,
|
||||
const ArgList &Args,
|
||||
const char *LinkingOutput) const {
|
||||
auto &TC = static_cast<const toolchains::PS4PS5Base &>(getToolChain());
|
||||
claimNoWarnArgs(Args);
|
||||
ArgStringList CmdArgs;
|
||||
|
@ -117,11 +117,11 @@ void toolchains::PS5CPU::addSanitizerArgs(const ArgList &Args,
|
|||
CmdArgs.push_back(arg("SceThreadSanitizer_nosubmission_stub_weak"));
|
||||
}
|
||||
|
||||
void tools::PScpu::Link::ConstructJob(Compilation &C, const JobAction &JA,
|
||||
const InputInfo &Output,
|
||||
const InputInfoList &Inputs,
|
||||
const ArgList &Args,
|
||||
const char *LinkingOutput) const {
|
||||
void tools::PScpu::Linker::ConstructJob(Compilation &C, const JobAction &JA,
|
||||
const InputInfo &Output,
|
||||
const InputInfoList &Inputs,
|
||||
const ArgList &Args,
|
||||
const char *LinkingOutput) const {
|
||||
auto &TC = static_cast<const toolchains::PS4PS5Base &>(getToolChain());
|
||||
const Driver &D = TC.getDriver();
|
||||
ArgStringList CmdArgs;
|
||||
|
@ -245,7 +245,7 @@ toolchains::PS4PS5Base::PS4PS5Base(const Driver &D, const llvm::Triple &Triple,
|
|||
}
|
||||
|
||||
Tool *toolchains::PS4CPU::buildAssembler() const {
|
||||
return new tools::PScpu::Assemble(*this);
|
||||
return new tools::PScpu::Assembler(*this);
|
||||
}
|
||||
|
||||
Tool *toolchains::PS5CPU::buildAssembler() const {
|
||||
|
@ -255,7 +255,7 @@ Tool *toolchains::PS5CPU::buildAssembler() const {
|
|||
}
|
||||
|
||||
Tool *toolchains::PS4PS5Base::buildLinker() const {
|
||||
return new tools::PScpu::Link(*this);
|
||||
return new tools::PScpu::Linker(*this);
|
||||
}
|
||||
|
||||
SanitizerMask toolchains::PS4PS5Base::getSupportedSanitizers() const {
|
||||
|
|
|
@ -27,9 +27,9 @@ void addProfileRTArgs(const ToolChain &TC, const llvm::opt::ArgList &Args,
|
|||
void addSanitizerArgs(const ToolChain &TC, const llvm::opt::ArgList &Args,
|
||||
llvm::opt::ArgStringList &CmdArgs);
|
||||
|
||||
class LLVM_LIBRARY_VISIBILITY Assemble : public Tool {
|
||||
class LLVM_LIBRARY_VISIBILITY Assembler : public Tool {
|
||||
public:
|
||||
Assemble(const ToolChain &TC) : Tool("PScpu::Assemble", "assembler", TC) {}
|
||||
Assembler(const ToolChain &TC) : Tool("PScpu::Assembler", "assembler", TC) {}
|
||||
|
||||
bool hasIntegratedCPP() const override { return false; }
|
||||
|
||||
|
@ -39,9 +39,9 @@ public:
|
|||
const char *LinkingOutput) const override;
|
||||
};
|
||||
|
||||
class LLVM_LIBRARY_VISIBILITY Link : public Tool {
|
||||
class LLVM_LIBRARY_VISIBILITY Linker : public Tool {
|
||||
public:
|
||||
Link(const ToolChain &TC) : Tool("PScpu::Link", "linker", TC) {}
|
||||
Linker(const ToolChain &TC) : Tool("PScpu::Linker", "linker", TC) {}
|
||||
|
||||
bool hasIntegratedCPP() const override { return false; }
|
||||
bool isLinkJob() const override { return true; }
|
||||
|
|
Loading…
Reference in New Issue