diff options
author | Anchu Rajendran S <asudhaku@amd.com> | 2025-05-02 07:38:44 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-05-02 07:38:44 -0700 |
commit | 580da48a93ea3065cced426bb37df65a933c21f7 (patch) | |
tree | e75f97f898c1f45bf6b1711bb6ef3a63a5812959 /flang/lib/Frontend/CompilerInvocation.cpp | |
parent | 04e32b8a33bbbd184114aba23c017706b957fb95 (diff) | |
download | llvm-580da48a93ea3065cced426bb37df65a933c21f7.zip llvm-580da48a93ea3065cced426bb37df65a933c21f7.tar.gz llvm-580da48a93ea3065cced426bb37df65a933c21f7.tar.bz2 |
[flang][flang-driver] Support flag -finstrument-functions (#137996)
Diffstat (limited to 'flang/lib/Frontend/CompilerInvocation.cpp')
-rw-r--r-- | flang/lib/Frontend/CompilerInvocation.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/flang/lib/Frontend/CompilerInvocation.cpp b/flang/lib/Frontend/CompilerInvocation.cpp index 6f87a18..d6ba644 100644 --- a/flang/lib/Frontend/CompilerInvocation.cpp +++ b/flang/lib/Frontend/CompilerInvocation.cpp @@ -310,6 +310,9 @@ static void parseCodeGenArgs(Fortran::frontend::CodeGenOptions &opts, args.filtered(clang::driver::options::OPT_fembed_offload_object_EQ)) opts.OffloadObjects.push_back(a->getValue()); + if (args.hasArg(clang::driver::options::OPT_finstrument_functions)) + opts.InstrumentFunctions = 1; + // -flto=full/thin option. if (const llvm::opt::Arg *a = args.getLastArg(clang::driver::options::OPT_flto_EQ)) { |