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 a3b8324 commit 80993a6Copy full SHA for 80993a6
src/object_file.rs
@@ -111,9 +111,9 @@ impl Section {
111
pub fn get_name(&self) -> Option<&CStr> {
112
let name = unsafe {
113
LLVMGetSectionName(self.section)
114
- }
+ };
115
if !name.is_null() {
116
- CStr::from_ptr(name)
+ Some(unsafe { CStr::from_ptr(name) })
117
} else {
118
None
119
}
@@ -310,9 +310,9 @@ impl Symbol {
310
311
312
LLVMGetSymbolName(self.symbol)
313
314
315
316
317
318
0 commit comments