Make new PM honor -fdebug-info-for-profiling (clang side)
authorDehao Chen <dehao@google.com>
Thu, 27 Jul 2017 15:29:53 +0000 (15:29 +0000)
committerDehao Chen <dehao@google.com>
Thu, 27 Jul 2017 15:29:53 +0000 (15:29 +0000)
commitc76a27e3257c54948df7fa969042d098c7569be8
treeeed9c0f93177f3009c9b00992cbad44fc3b3d9bd
parent72c0b1cc1b9d012a315448ac1e6d87f6977af731
Make new PM honor -fdebug-info-for-profiling (clang side)

Summary: The new PM needs to invoke add-discriminator pass when building with -fdebug-info-for-profiling.

Reviewers: chandlerc, davidxl

Reviewed By: chandlerc

Subscribers: sanjoy, cfe-commits

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

llvm-svn: 309282
clang/lib/CodeGen/BackendUtil.cpp