This allows us to store more info about where we're emitting the remarks without cluttering LLVMContext.
Details
Details
- Reviewers
paquette anemet JDevlieghere hfinkel fhahn - Commits
- rGb8a847c0a3ed: Reland "[Remarks] Refactor remark diagnostic emission in a RemarkStreamer"
rC355514: Reland "[Remarks] Refactor remark diagnostic emission in a RemarkStreamer"
rL355514: Reland "[Remarks] Refactor remark diagnostic emission in a RemarkStreamer"
rG9052f50cb4c9: [Remarks] Refactor remark diagnostic emission in a RemarkStreamer
rL355507: [Remarks] Refactor remark diagnostic emission in a RemarkStreamer
rC355507: [Remarks] Refactor remark diagnostic emission in a RemarkStreamer
Diff Detail
Diff Detail
Event Timeline
| clang/lib/CodeGen/CodeGenAction.cpp | ||
|---|---|---|
| 279 | This doesn't seem to "set a remark streamer", but rather create one. Shouldn't the method name reflect that, maybe something like createRemarkStreamer? Or is this a pattern used in the LLVMContext? | |
| llvm/include/llvm/IR/LLVMContext.h | ||
| 258 | You should probably mention that if a RemarkStreamer is set, it will be replaced. | |
| llvm/include/llvm/IR/RemarkStreamer.h | ||
| 1 | Old license | |
| llvm/lib/IR/RemarkStreamer.cpp | ||
| 1 | Old license | |
This doesn't seem to "set a remark streamer", but rather create one. Shouldn't the method name reflect that, maybe something like createRemarkStreamer? Or is this a pattern used in the LLVMContext?