]> granicus.if.org Git - llvm/commit
Reland "[Remarks] Refactor remark diagnostic emission in a RemarkStreamer"
authorFrancis Visoiu Mistrih <francisvm@yahoo.com>
Wed, 6 Mar 2019 15:20:13 +0000 (15:20 +0000)
committerFrancis Visoiu Mistrih <francisvm@yahoo.com>
Wed, 6 Mar 2019 15:20:13 +0000 (15:20 +0000)
commit78ee34a412ec94af550d0881875ce437bab56b9f
treebb1c7604d13b84379462c7afbd512f7d2e429af1
parent69806c5e5c62904267915ac1d4c2262d9e53e8ea
Reland "[Remarks] Refactor remark diagnostic emission in a RemarkStreamer"

This allows us to store more info about where we're emitting the remarks
without cluttering LLVMContext. This is needed for future support for
the remark section.

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

Original llvm-svn: 355507

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@355514 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Analysis/OptimizationRemarkEmitter.h
include/llvm/CodeGen/MachineOptimizationRemarkEmitter.h
include/llvm/IR/LLVMContext.h
include/llvm/IR/RemarkStreamer.h [new file with mode: 0644]
lib/IR/CMakeLists.txt
lib/IR/LLVMContext.cpp
lib/IR/LLVMContextImpl.h
lib/IR/RemarkStreamer.cpp [new file with mode: 0644]
lib/LTO/LTO.cpp
tools/llc/llc.cpp
tools/opt/opt.cpp