Lines 25-30
Link Here
|
25 |
#include "clang/Basic/LangOptions.h" |
25 |
#include "clang/Basic/LangOptions.h" |
26 |
#include "clang/Basic/ObjCRuntime.h" |
26 |
#include "clang/Basic/ObjCRuntime.h" |
27 |
#include "clang/Basic/Version.h" |
27 |
#include "clang/Basic/Version.h" |
|
|
28 |
#include "clang/Driver/Distro.h" |
28 |
#include "clang/Driver/DriverDiagnostic.h" |
29 |
#include "clang/Driver/DriverDiagnostic.h" |
29 |
#include "clang/Driver/Options.h" |
30 |
#include "clang/Driver/Options.h" |
30 |
#include "clang/Driver/SanitizerArgs.h" |
31 |
#include "clang/Driver/SanitizerArgs.h" |
Lines 5138-5144
void Clang::ConstructJob(Compilation &C, const JobAction &JA,
Link Here
|
5138 |
if (Args.hasFlag(options::OPT_faddrsig, options::OPT_fno_addrsig, |
5139 |
if (Args.hasFlag(options::OPT_faddrsig, options::OPT_fno_addrsig, |
5139 |
(TC.getTriple().isOSBinFormatELF() || |
5140 |
(TC.getTriple().isOSBinFormatELF() || |
5140 |
TC.getTriple().isOSBinFormatCOFF()) && |
5141 |
TC.getTriple().isOSBinFormatCOFF()) && |
5141 |
TC.useIntegratedAs())) |
5142 |
TC.useIntegratedAs() && |
|
|
5143 |
Distro(D.getVFS()) != Distro::Gentoo)) |
5142 |
CmdArgs.push_back("-faddrsig"); |
5144 |
CmdArgs.push_back("-faddrsig"); |
5143 |
|
5145 |
|
5144 |
// Finally add the compile command to the compilation. |
5146 |
// Finally add the compile command to the compilation. |