Skip to content

Commit e44cdb9

Browse files
authored
docs: clarify target machine emission (#706)
1 parent e61c941 commit e44cdb9

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/targets.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1147,7 +1147,7 @@ impl TargetMachine {
11471147
unsafe { LLVMAddAnalysisPasses(self.target_machine.as_ptr(), pass_manager.pass_manager) }
11481148
}
11491149

1150-
/// Writes a `TargetMachine` to a `MemoryBuffer`.
1150+
/// Compiles `module` to assembly or object code and returns the output in a `MemoryBuffer`.
11511151
///
11521152
/// # Example
11531153
///
@@ -1210,7 +1210,7 @@ impl TargetMachine {
12101210
unsafe { Ok(MemoryBuffer::new(memory_buffer)) }
12111211
}
12121212

1213-
/// Saves a `TargetMachine` to a file.
1213+
/// Compiles `module` to assembly or object code and writes the output to `path`.
12141214
///
12151215
/// # Example
12161216
///

0 commit comments

Comments
 (0)