diff options
author | Francis Visoiu Mistrih <francisvm@yahoo.com> | 2019-03-06 14:32:08 +0000 |
---|---|---|
committer | Francis Visoiu Mistrih <francisvm@yahoo.com> | 2019-03-06 14:32:08 +0000 |
commit | 9052f50cb4c927fd316bb41b17a950d182c9b945 (patch) | |
tree | f9a7d882186ba715e0b4a2478d9099c6c26f758e /llvm/lib/IR/DiagnosticInfo.cpp | |
parent | 1bdc2d1874e7035f86e5b9e3d3a6b005f27b8224 (diff) | |
download | bcm5719-llvm-9052f50cb4c927fd316bb41b17a950d182c9b945.tar.gz bcm5719-llvm-9052f50cb4c927fd316bb41b17a950d182c9b945.zip |
[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
llvm-svn: 355507
Diffstat (limited to 'llvm/lib/IR/DiagnosticInfo.cpp')
-rw-r--r-- | llvm/lib/IR/DiagnosticInfo.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/IR/DiagnosticInfo.cpp b/llvm/lib/IR/DiagnosticInfo.cpp index 14bee35dc29..020305d76cb 100644 --- a/llvm/lib/IR/DiagnosticInfo.cpp +++ b/llvm/lib/IR/DiagnosticInfo.cpp @@ -27,6 +27,7 @@ #include "llvm/IR/LLVMContext.h" #include "llvm/IR/Metadata.h" #include "llvm/IR/Module.h" +#include "llvm/IR/RemarkStreamer.h" #include "llvm/IR/Type.h" #include "llvm/IR/Value.h" #include "llvm/Support/Casting.h" |