diff options
author | Sriraman Tallam <tmsriram@google.com> | 2017-11-07 19:37:51 +0000 |
---|---|---|
committer | Sriraman Tallam <tmsriram@google.com> | 2017-11-07 19:37:51 +0000 |
commit | 5c65148565d9af773c51e20c219f494a5fc3cd3d (patch) | |
tree | 0a5be1ef782e6a6416940f6858fe60c666adbef4 /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | 4e8ce0225f39ce8fbb278ed8ed6ef83813a82cf2 (diff) | |
download | bcm5719-llvm-5c65148565d9af773c51e20c219f494a5fc3cd3d.tar.gz bcm5719-llvm-5c65148565d9af773c51e20c219f494a5fc3cd3d.zip |
New clang option -fno-plt which avoids the PLT and lazy binding while making external calls.
Differential Revision: https://reviews.llvm.org/D39079
llvm-svn: 317605
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
-rw-r--r-- | clang/lib/Frontend/CompilerInvocation.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/Frontend/CompilerInvocation.cpp b/clang/lib/Frontend/CompilerInvocation.cpp index 692b20bd3ad..ca1c65e95a4 100644 --- a/clang/lib/Frontend/CompilerInvocation.cpp +++ b/clang/lib/Frontend/CompilerInvocation.cpp @@ -653,6 +653,7 @@ static bool ParseCodeGenArgs(CodeGenOptions &Opts, ArgList &Args, InputKind IK, Args.hasArg(OPT_mincremental_linker_compatible); Opts.PIECopyRelocations = Args.hasArg(OPT_mpie_copy_relocations); + Opts.NoPLT = Args.hasArg(OPT_fno_plt); Opts.OmitLeafFramePointer = Args.hasArg(OPT_momit_leaf_frame_pointer); Opts.SaveTempLabels = Args.hasArg(OPT_msave_temp_labels); Opts.NoDwarfDirectoryAsm = Args.hasArg(OPT_fno_dwarf_directory_asm); |