forked from OSchip/llvm-project
Rename clang::driver::tools::linuxtools to clang::driver::tools::gnutools.
This is about the GNU Binutils' assembler and linker, so reflect that in the name. llvm-svn: 178272
This commit is contained in:
parent
6d94da0068
commit
4e55526737
|
@ -2204,11 +2204,11 @@ bool Linux::HasNativeLLVMSupport() const {
|
||||||
}
|
}
|
||||||
|
|
||||||
Tool *Linux::buildLinker() const {
|
Tool *Linux::buildLinker() const {
|
||||||
return new tools::linuxtools::Link(*this);
|
return new tools::gnutools::Link(*this);
|
||||||
}
|
}
|
||||||
|
|
||||||
Tool *Linux::buildAssembler() const {
|
Tool *Linux::buildAssembler() const {
|
||||||
return new tools::linuxtools::Assemble(*this);
|
return new tools::gnutools::Assemble(*this);
|
||||||
}
|
}
|
||||||
|
|
||||||
void Linux::addClangTargetOptions(const ArgList &DriverArgs,
|
void Linux::addClangTargetOptions(const ArgList &DriverArgs,
|
||||||
|
|
|
@ -5603,11 +5603,11 @@ void netbsd::Link::ConstructJob(Compilation &C, const JobAction &JA,
|
||||||
C.addCommand(new Command(JA, *this, Exec, CmdArgs));
|
C.addCommand(new Command(JA, *this, Exec, CmdArgs));
|
||||||
}
|
}
|
||||||
|
|
||||||
void linuxtools::Assemble::ConstructJob(Compilation &C, const JobAction &JA,
|
void gnutools::Assemble::ConstructJob(Compilation &C, const JobAction &JA,
|
||||||
const InputInfo &Output,
|
const InputInfo &Output,
|
||||||
const InputInfoList &Inputs,
|
const InputInfoList &Inputs,
|
||||||
const ArgList &Args,
|
const ArgList &Args,
|
||||||
const char *LinkingOutput) const {
|
const char *LinkingOutput) const {
|
||||||
ArgStringList CmdArgs;
|
ArgStringList CmdArgs;
|
||||||
|
|
||||||
// Add --32/--64 to make sure we get the format we want.
|
// Add --32/--64 to make sure we get the format we want.
|
||||||
|
@ -5724,11 +5724,11 @@ static bool hasMipsN32ABIArg(const ArgList &Args) {
|
||||||
return A && (A->getValue() == StringRef("n32"));
|
return A && (A->getValue() == StringRef("n32"));
|
||||||
}
|
}
|
||||||
|
|
||||||
void linuxtools::Link::ConstructJob(Compilation &C, const JobAction &JA,
|
void gnutools::Link::ConstructJob(Compilation &C, const JobAction &JA,
|
||||||
const InputInfo &Output,
|
const InputInfo &Output,
|
||||||
const InputInfoList &Inputs,
|
const InputInfoList &Inputs,
|
||||||
const ArgList &Args,
|
const ArgList &Args,
|
||||||
const char *LinkingOutput) const {
|
const char *LinkingOutput) const {
|
||||||
const toolchains::Linux& ToolChain =
|
const toolchains::Linux& ToolChain =
|
||||||
static_cast<const toolchains::Linux&>(getToolChain());
|
static_cast<const toolchains::Linux&>(getToolChain());
|
||||||
const Driver &D = ToolChain.getDriver();
|
const Driver &D = ToolChain.getDriver();
|
||||||
|
|
|
@ -427,12 +427,11 @@ namespace netbsd {
|
||||||
};
|
};
|
||||||
} // end namespace netbsd
|
} // end namespace netbsd
|
||||||
|
|
||||||
/// linux -- Directly call GNU Binutils assembler and linker
|
/// Directly call GNU Binutils' assembler and linker.
|
||||||
namespace linuxtools {
|
namespace gnutools {
|
||||||
class LLVM_LIBRARY_VISIBILITY Assemble : public Tool {
|
class LLVM_LIBRARY_VISIBILITY Assemble : public Tool {
|
||||||
public:
|
public:
|
||||||
Assemble(const ToolChain &TC) : Tool("linux::Assemble", "assembler",
|
Assemble(const ToolChain &TC) : Tool("GNU::Assemble", "assembler", TC) {}
|
||||||
TC) {}
|
|
||||||
|
|
||||||
virtual bool hasIntegratedCPP() const { return false; }
|
virtual bool hasIntegratedCPP() const { return false; }
|
||||||
|
|
||||||
|
@ -444,7 +443,7 @@ namespace linuxtools {
|
||||||
};
|
};
|
||||||
class LLVM_LIBRARY_VISIBILITY Link : public Tool {
|
class LLVM_LIBRARY_VISIBILITY Link : public Tool {
|
||||||
public:
|
public:
|
||||||
Link(const ToolChain &TC) : Tool("linux::Link", "linker", TC) {}
|
Link(const ToolChain &TC) : Tool("GNU::Link", "linker", TC) {}
|
||||||
|
|
||||||
virtual bool hasIntegratedCPP() const { return false; }
|
virtual bool hasIntegratedCPP() const { return false; }
|
||||||
virtual bool isLinkJob() const { return true; }
|
virtual bool isLinkJob() const { return true; }
|
||||||
|
|
Loading…
Reference in New Issue