forked from OSchip/llvm-project
Reland r340552, "Driver: Enable address-significance tables by default when targeting COFF." which was reverted in r340579.
The underlying problem that caused the revert was fixed in r340648. Differential Revision: https://reviews.llvm.org/D51049 llvm-svn: 340649
This commit is contained in:
parent
3f792230cb
commit
faf300f069
|
@ -4857,7 +4857,8 @@ void Clang::ConstructJob(Compilation &C, const JobAction &JA,
|
|||
}
|
||||
|
||||
if (Args.hasFlag(options::OPT_faddrsig, options::OPT_fno_addrsig,
|
||||
getToolChain().getTriple().isOSBinFormatELF() &&
|
||||
(getToolChain().getTriple().isOSBinFormatELF() ||
|
||||
getToolChain().getTriple().isOSBinFormatCOFF()) &&
|
||||
getToolChain().useIntegratedAs()))
|
||||
CmdArgs.push_back("-faddrsig");
|
||||
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
// RUN: %clang -### -target x86_64-unknown-linux -c %s 2>&1 | FileCheck -check-prefix=ADDRSIG %s
|
||||
// RUN: %clang -### -target x86_64-pc-win32 -c %s 2>&1 | FileCheck -check-prefix=ADDRSIG %s
|
||||
// RUN: %clang -### -target x86_64-unknown-linux -fno-integrated-as -c %s 2>&1 | FileCheck -check-prefix=NO-ADDRSIG %s
|
||||
// RUN: %clang -### -target x86_64-unknown-linux -fno-integrated-as -faddrsig -c %s 2>&1 | FileCheck -check-prefix=ADDRSIG %s
|
||||
// RUN: %clang -### -target x86_64-unknown-linux -fno-addrsig -c %s 2>&1 | FileCheck -check-prefix=NO-ADDRSIG %s
|
||||
|
|
Loading…
Reference in New Issue