forked from OSchip/llvm-project
[Hexagon] Use GetLinkerPath instead of hard-coded string.
Add GetLinkerPath and set the default to "hexagon-link". Use GetLinkerPath instead of the hard-coded string. This change will allow -fuse-ld to function correctly. Differential revision: https://reviews.llvm.org/D53038 llvm-svn: 344147
This commit is contained in:
parent
e6e817534a
commit
a6a201916a
|
@ -369,9 +369,8 @@ void hexagon::Linker::ConstructJob(Compilation &C, const JobAction &JA,
|
|||
constructHexagonLinkArgs(C, JA, HTC, Output, Inputs, Args, CmdArgs,
|
||||
LinkingOutput);
|
||||
|
||||
std::string Linker = HTC.GetProgramPath("hexagon-link");
|
||||
C.addCommand(llvm::make_unique<Command>(JA, *this, Args.MakeArgString(Linker),
|
||||
CmdArgs, Inputs));
|
||||
const char *Exec = Args.MakeArgString(HTC.GetLinkerPath());
|
||||
C.addCommand(llvm::make_unique<Command>(JA, *this, Exec, CmdArgs, Inputs));
|
||||
}
|
||||
// Hexagon tools end.
|
||||
|
||||
|
|
|
@ -81,6 +81,9 @@ public:
|
|||
void addLibStdCxxIncludePaths(
|
||||
const llvm::opt::ArgList &DriverArgs,
|
||||
llvm::opt::ArgStringList &CC1Args) const override;
|
||||
|
||||
const char *getDefaultLinker() const override { return "hexagon-link"; }
|
||||
|
||||
CXXStdlibType GetCXXStdlibType(const llvm::opt::ArgList &Args) const override;
|
||||
|
||||
StringRef GetGCCLibAndIncVersion() const { return GCCLibAndIncVersion.Text; }
|
||||
|
|
Loading…
Reference in New Issue