aboutsummaryrefslogtreecommitdiff
path: root/llvm/include/llvm/IR/RemarkStreamer.h
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/include/llvm/IR/RemarkStreamer.h')
-rw-r--r--llvm/include/llvm/IR/RemarkStreamer.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/include/llvm/IR/RemarkStreamer.h b/llvm/include/llvm/IR/RemarkStreamer.h
index 2abf6f99cb08..9ea12e8389f0 100644
--- a/llvm/include/llvm/IR/RemarkStreamer.h
+++ b/llvm/include/llvm/IR/RemarkStreamer.h
@@ -53,6 +53,8 @@ public:
Error setFilter(StringRef Filter);
/// Emit a diagnostic through the streamer.
void emit(const DiagnosticInfoOptimizationBase &Diag);
+ /// Check if the remarks also need to have associated metadata in a section.
+ bool needsSection() const;
};
template <typename ThisError>