We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 48b88b4 commit 2314f66Copy full SHA for 2314f66
compiler/section_mangler/src/lib.rs
@@ -77,6 +77,13 @@ impl SectionMangler {
77
SectionMangler::Variable(VariableMangler { name: name.into(), ty })
78
}
79
80
+ pub fn name(&self) -> &str {
81
+ match self {
82
+ SectionMangler::Function(FunctionMangler { name, .. })
83
+ | SectionMangler::Variable(VariableMangler { name, .. }) => name,
84
+ }
85
86
+
87
pub fn with_parameter(self, param: FunctionArgument) -> SectionMangler {
88
match self {
89
SectionMangler::Function(f) => {
0 commit comments