Skip to content

Commit

Permalink
Make sure the lib documentation contains the new file_path
Browse files Browse the repository at this point in the history
  • Loading branch information
ghaith committed Apr 19, 2021
1 parent 7bfa429 commit 0b56ceb
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ fn compile_to_obj(
///
/// # Arguments
///
/// * `file_path` - the source code's location
/// * `source` - the source to be compiled
/// * `output` - the location on disk to save the output
/// * `target` - an optional llvm target triple
Expand All @@ -101,6 +102,7 @@ pub fn compile_to_static_obj(
///
/// # Arguments
///
/// * `file_path` - the source code's location
/// * `source` - the source to be compiled
/// * `output` - the location on disk to save the output
/// * `target` - an optional llvm target triple
Expand All @@ -118,6 +120,7 @@ pub fn compile_to_shared_pic_object(
///
/// # Arguments
///
/// * `file_path` - the source code's location
/// * `source` - the source to be compiled
/// * `output` - the location on disk to save the output
/// * `target` - an optional llvm target triple
Expand All @@ -136,6 +139,7 @@ pub fn compile_to_shared_object(
///
/// # Arguments
///
/// * `file_path` - the source code's location
/// * `source` - the source to be compiled
/// * `output` - the location on disk to save the output
pub fn compile_to_bitcode(
Expand All @@ -156,6 +160,7 @@ pub fn compile_to_bitcode(
///
/// # Arguments
///
/// * `file_path` - the source code's location
/// * `source` - the source to be compiled
pub fn compile_to_ir(file_path: &str, source: String) -> Result<String, CompileError> {
let context = Context::create();
Expand All @@ -173,6 +178,7 @@ fn get_ir(codegen: &codegen::CodeGen) -> String {
/// # Arguments
///
/// * `context` - the LLVM Context to be used for the compilation
/// * `file_path` - the source code's location
/// * `source` - the source to be compiled
pub fn compile_module<'ink, 'file>(
context: &'ink Context,
Expand Down

0 comments on commit 0b56ceb

Please sign in to comment.