OSDN Git Service

OptDiag: Decouple backend diagnostics from debug info metadata
authorJustin Bogner <mail@justinbogner.com>
Sat, 18 Feb 2017 00:42:23 +0000 (00:42 +0000)
committerJustin Bogner <mail@justinbogner.com>
Sat, 18 Feb 2017 00:42:23 +0000 (00:42 +0000)
commit787e150ebea15e81dbd497846388c8c5dc855fb6
treeaf1ad5a0c15f9a68c7475807b85095cca49a78c6
parent5e55477ae573dbeeb2c0abbbf3e26d6960423279
OptDiag: Decouple backend diagnostics from debug info metadata

This creates and uses a DiagnosticLocation type rather than using
DebugLoc for this purpose in the backend diagnostics. This is NFC for
now, but will allow us to create locations for diagnostics without
having to create new metadata nodes when we don't have a DILocation.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@295519 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/IR/DiagnosticInfo.h
lib/Analysis/OptimizationDiagnosticInfo.cpp
lib/IR/DiagnosticInfo.cpp