Skip to content

Commit 47bb3c1

Browse files
committed
R4: Addressing review comments
1 parent 3a00558 commit 47bb3c1

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

flang/include/flang/Frontend/CodeGenOptions.def

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ CODEGENOPT(OptimizationLevel, 2, 0) ///< The -O[0-3] option specified.
2424
CODEGENOPT(DebugPassManager, 1, 0) ///< Prints debug information for the new
2525
///< pass manager.
2626

27+
CODEGENOPT(InstrumentFunctions, 1, 0) ///< Set when -finstrument_functions is
28+
///< enabled on the compile step.
2729
CODEGENOPT(IsPIE, 1, 0) ///< PIE level is the same as PIC Level.
2830
CODEGENOPT(PICLevel, 2, 0) ///< PIC level of the LLVM module.
2931
CODEGENOPT(PrepareForFullLTO , 1, 0) ///< Set when -flto is enabled on the

flang/include/flang/Frontend/CodeGenOptions.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,6 @@ class CodeGenOptions : public CodeGenOptionsBase {
8181
/// Options to add to the linker for the object file
8282
std::vector<std::string> DependentLibs;
8383

84-
/// Indicates whether -finstrument-functions is passed
85-
bool InstrumentFunctions{false};
86-
8784
// The RemarkKind enum class and OptRemark struct are identical to what Clang
8885
// has
8986
// TODO: Share with clang instead of re-implementing here

flang/lib/Frontend/CompilerInvocation.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ static void parseCodeGenArgs(Fortran::frontend::CodeGenOptions &opts,
311311
opts.OffloadObjects.push_back(a->getValue());
312312

313313
if (args.hasArg(clang::driver::options::OPT_finstrument_functions))
314-
opts.InstrumentFunctions = true;
314+
opts.InstrumentFunctions = 1;
315315

316316
// -flto=full/thin option.
317317
if (const llvm::opt::Arg *a =

0 commit comments

Comments
 (0)