diff options
author | Fangrui Song <maskray@google.com> | 2020-01-20 14:30:06 -0800 |
---|---|---|
committer | Fangrui Song <maskray@google.com> | 2020-01-23 17:02:54 -0800 |
commit | 69bf40c45fd7f6dfe11b47de42571d8bff5ef94f (patch) | |
tree | a3ffc30b1b9e1dd0c234eebbe055451d0eb9f7f8 /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | 01da05b71aa72c15a518d3407682a3775db63808 (diff) | |
download | llvm-69bf40c45fd7f6dfe11b47de42571d8bff5ef94f.zip llvm-69bf40c45fd7f6dfe11b47de42571d8bff5ef94f.tar.gz llvm-69bf40c45fd7f6dfe11b47de42571d8bff5ef94f.tar.bz2 |
[Driver][CodeGen] Support -fpatchable-function-entry=N,M and __attribute__((patchable_function_entry(N,M))) where M>0
Reviewed By: nickdesaulniers
Differential Revision: https://reviews.llvm.org/D73072
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
-rw-r--r-- | clang/lib/Frontend/CompilerInvocation.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/lib/Frontend/CompilerInvocation.cpp b/clang/lib/Frontend/CompilerInvocation.cpp index 44abcc3..40bcc95 100644 --- a/clang/lib/Frontend/CompilerInvocation.cpp +++ b/clang/lib/Frontend/CompilerInvocation.cpp @@ -1102,6 +1102,8 @@ static bool ParseCodeGenArgs(CodeGenOptions &Opts, ArgList &Args, InputKind IK, Opts.PatchableFunctionEntryCount = getLastArgIntValue(Args, OPT_fpatchable_function_entry_EQ, 0, Diags); + Opts.PatchableFunctionEntryOffset = getLastArgIntValue( + Args, OPT_fpatchable_function_entry_offset_EQ, 0, Diags); Opts.InstrumentForProfiling = Args.hasArg(OPT_pg); Opts.CallFEntry = Args.hasArg(OPT_mfentry); Opts.MNopMCount = Args.hasArg(OPT_mnop_mcount); |