Support -fno-omit-frame-pointer with -pg.
authorStephen Hines <srhines@google.com>
Thu, 13 Sep 2018 19:50:02 +0000 (19:50 +0000)
committerStephen Hines <srhines@google.com>
Thu, 13 Sep 2018 19:50:02 +0000 (19:50 +0000)
commitf9ca6dd8f76ec9047938fd37746611948814edf3
tree8d1677732e03a4c749ad835cfb7a58a9fa2fc4d3
parentc173a703b546185ae55069b09c9281e8e3ecd074
Support -fno-omit-frame-pointer with -pg.

Summary:
Previously, any instance of -fomit-frame-pointer would make it such that
-pg was an invalid flag combination. If -fno-omit-frame-pointer is
passed later on the command line (such that it actually takes effect),
-pg should be allowed.

Reviewers: nickdesaulniers

Reviewed By: nickdesaulniers

Subscribers: manojgupta, nickdesaulniers, cfe-commits, kongyi, chh, pirama

Differential Revision: https://reviews.llvm.org/D51713

llvm-svn: 342165
clang/lib/Driver/ToolChains/Clang.cpp
clang/test/Driver/clang_f_opts.c