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)
commitb8a847c0a3edc4165afce9e2449737751bd34f78
tree8d5735d92301df39ea8f43e415d85ce99bf6e19d
parent94fccc93dec54bfc7d810870aa965c4e6fb9bdfa
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

llvm-svn: 355514
12 files changed:
clang/lib/CodeGen/CodeGenAction.cpp
llvm/include/llvm/Analysis/OptimizationRemarkEmitter.h
llvm/include/llvm/CodeGen/MachineOptimizationRemarkEmitter.h
llvm/include/llvm/IR/LLVMContext.h
llvm/include/llvm/IR/RemarkStreamer.h [new file with mode: 0644]
llvm/lib/IR/CMakeLists.txt
llvm/lib/IR/LLVMContext.cpp
llvm/lib/IR/LLVMContextImpl.h
llvm/lib/IR/RemarkStreamer.cpp [new file with mode: 0644]
llvm/lib/LTO/LTO.cpp
llvm/tools/llc/llc.cpp
llvm/tools/opt/opt.cpp