Pull in r202179 from upstream clang trunk:
Pass the sparc architecture variant to the assembler.
This commit is contained in:
parent
d7538a4458
commit
a7ba6e6eb5
@ -5788,6 +5788,11 @@ void freebsd::Assemble::ConstructJob(Compilation &C, const JobAction &JA,
|
||||
}
|
||||
} else if (getToolChain().getArch() == llvm::Triple::sparc ||
|
||||
getToolChain().getArch() == llvm::Triple::sparcv9) {
|
||||
if (getToolChain().getArch() == llvm::Triple::sparc)
|
||||
CmdArgs.push_back("-Av8plusa");
|
||||
else
|
||||
CmdArgs.push_back("-Av9a");
|
||||
|
||||
Arg *LastPICArg = Args.getLastArg(options::OPT_fPIC, options::OPT_fno_PIC,
|
||||
options::OPT_fpic, options::OPT_fno_pic,
|
||||
options::OPT_fPIE, options::OPT_fno_PIE,
|
||||
|
Loading…
Reference in New Issue
Block a user