From 73e25a571f12d3deaa6f4493a5b4792a9dae39eb Mon Sep 17 00:00:00 2001 From: johannst Date: Sat, 24 Sep 2022 22:38:40 +0000 Subject: deploy: 295081130ca1eed6e67dfc035e2df2c9ed49b174 --- src/llvm_kaleidoscope_rs/llvm/pass_manager.rs.html | 36 ++++++++++++---------- 1 file changed, 20 insertions(+), 16 deletions(-) (limited to 'src/llvm_kaleidoscope_rs/llvm/pass_manager.rs.html') diff --git a/src/llvm_kaleidoscope_rs/llvm/pass_manager.rs.html b/src/llvm_kaleidoscope_rs/llvm/pass_manager.rs.html index ab73029..ebf9b28 100644 --- a/src/llvm_kaleidoscope_rs/llvm/pass_manager.rs.html +++ b/src/llvm_kaleidoscope_rs/llvm/pass_manager.rs.html @@ -1,12 +1,18 @@ -pass_manager.rs - source
 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
+pass_manager.rs - source
+    
1
+2
+3
+4
+5
+6
+7
+8
+9
 10
 11
 12
@@ -73,8 +79,7 @@
 73
 74
 75
-
-use llvm_sys::{
+
use llvm_sys::{
     core::{
         LLVMCreateFunctionPassManagerForModule, LLVMDisposePassManager,
         LLVMInitializeFunctionPassManager, LLVMRunFunctionPassManager,
@@ -105,7 +110,7 @@
     ///
     /// The list of selected optimization passes is taken from the tutorial chapter [LLVM
     /// Optimization Passes](https://llvm.org/docs/tutorial/MyFirstLanguageFrontend/LangImpl04.html#id3).
-    pub fn with_ctx(module: &'llvm Module) -> FunctionPassManager<'llvm> {
+    pub fn with_ctx(module: &'llvm Module) -> FunctionPassManager<'llvm> {
         let fpm = unsafe {
             // Borrows module reference.
             LLVMCreateFunctionPassManagerForModule(module.module())
@@ -143,13 +148,12 @@
 }
 
 impl Drop for FunctionPassManager<'_> {
-    fn drop(&mut self) {
+    fn drop(&mut self) {
         unsafe {
             LLVMDisposePassManager(self.fpm);
         }
     }
 }
-
-
- +
+
\ No newline at end of file -- cgit v1.2.3