OSDN Git Service

OptDiag: Add const to some interfaces that don't modify anything. NFC
authorJustin Bogner <mail@justinbogner.com>
Wed, 22 Feb 2017 07:38:17 +0000 (07:38 +0000)
committerJustin Bogner <mail@justinbogner.com>
Wed, 22 Feb 2017 07:38:17 +0000 (07:38 +0000)
commit3d433ea2e3a8d95aa085cdc47747fca166507737
tree4cd73f6fc86a2511afe2f8c775e0de34571b1b9f
parent6badf185b6541c77ec5001864873976f8c0722b2
OptDiag: Add const to some interfaces that don't modify anything. NFC

This needed a const_cast for the dominator tree recalculation in
OptimizationRemarkEmitter, but we do that all over the place already
and it's safe.

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