diff options
Diffstat (limited to 'src/ir/function.rs')
-rw-r--r-- | src/ir/function.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/ir/function.rs b/src/ir/function.rs index a3a2bbfb..0ba2d1ee 100644 --- a/src/ir/function.rs +++ b/src/ir/function.rs @@ -131,6 +131,11 @@ impl Function { self.signature } + /// Get this function's comment. + pub fn comment(&self) -> Option<&str> { + self.comment.as_deref() + } + /// Get this function's kind. pub fn kind(&self) -> FunctionKind { self.kind |