1 parent e61c941 commit e44cdb9Copy full SHA for e44cdb9
1 file changed
src/targets.rs
@@ -1147,7 +1147,7 @@ impl TargetMachine {
1147
unsafe { LLVMAddAnalysisPasses(self.target_machine.as_ptr(), pass_manager.pass_manager) }
1148
}
1149
1150
- /// Writes a `TargetMachine` to a `MemoryBuffer`.
+ /// Compiles `module` to assembly or object code and returns the output in a `MemoryBuffer`.
1151
///
1152
/// # Example
1153
@@ -1210,7 +1210,7 @@ impl TargetMachine {
1210
unsafe { Ok(MemoryBuffer::new(memory_buffer)) }
1211
1212
1213
- /// Saves a `TargetMachine` to a file.
+ /// Compiles `module` to assembly or object code and writes the output to `path`.
1214
1215
1216
0 commit comments