OSDN Git Service

[OptDiag, opt-viewer] Save callee's location and display as link
authorAdam Nemet <anemet@apple.com>
Mon, 7 Nov 2016 22:41:13 +0000 (22:41 +0000)
committerAdam Nemet <anemet@apple.com>
Mon, 7 Nov 2016 22:41:13 +0000 (22:41 +0000)
commit330e12bad4975aa3c9335ddb7223f462977484d4
treeba6205302cb49b3b7d41a60bf91b2ac880205f05
parent978966fb97a422782acd9afb51712a6e38b2c4d3
[OptDiag, opt-viewer] Save callee's location and display as link

With this we get a new field in the YAML record if the value being
streamed out has a debug location.  For examples, please see the changes
to the tests.

This is then used in opt-viewer to display a link for the callee
function in the inlining remarks.

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@286169 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/IR/DiagnosticInfo.h
lib/Analysis/OptimizationDiagnosticInfo.cpp
lib/IR/DiagnosticInfo.cpp
test/Transforms/Inline/optimization-remarks-passed-yaml.ll
test/Transforms/Inline/optimization-remarks-yaml.ll
utils/opt-viewer/opt-viewer.py