diff options
author | Fangrui Song <maskray@google.com> | 2020-02-02 19:30:39 -0800 |
---|---|---|
committer | Fangrui Song <maskray@google.com> | 2020-02-02 20:45:29 -0800 |
commit | aed488e3a4dfdf15696521e13ac5e6ac2f9e7af7 (patch) | |
tree | ce8b12a4f8d769ab268842b1b2a89e1c6511bb50 /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | db7d2ab03d9a7372e86abeec6b99e83c763dfa42 (diff) | |
download | llvm-aed488e3a4dfdf15696521e13ac5e6ac2f9e7af7.zip llvm-aed488e3a4dfdf15696521e13ac5e6ac2f9e7af7.tar.gz llvm-aed488e3a4dfdf15696521e13ac5e6ac2f9e7af7.tar.bz2 |
[Driver] Move -fsemantic-interposition decision from cc1 to driver
And add test/Driver/fsemantic-interposition.c
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
-rw-r--r-- | clang/lib/Frontend/CompilerInvocation.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/clang/lib/Frontend/CompilerInvocation.cpp b/clang/lib/Frontend/CompilerInvocation.cpp index f3015d0..a711452 100644 --- a/clang/lib/Frontend/CompilerInvocation.cpp +++ b/clang/lib/Frontend/CompilerInvocation.cpp @@ -3031,9 +3031,7 @@ static void ParseLangArgs(LangOptions &Opts, ArgList &Args, InputKind IK, Opts.setDefaultCallingConv(DefaultCC); } - // -fsemantic-interposition - Opts.SemanticInterposition = - Args.hasArg(OPT_fsemantic_interposition) && Opts.PICLevel && !Opts.PIE; + Opts.SemanticInterposition = Args.hasArg(OPT_fsemantic_interposition); // -mrtd option if (Arg *A = Args.getLastArg(OPT_mrtd)) { |