Pull in r202179 from upstream clang trunk:

Pass the sparc architecture variant to the assembler.
This commit is contained in:
Dimitry Andric 2014-02-26 22:21:01 +00:00
parent d7538a4458
commit a7ba6e6eb5

View File

@ -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,