diff --git a/src/llvm/abi.cr b/src/llvm/abi.cr index 394f3e912aeb..6b3f51ee0fbb 100644 --- a/src/llvm/abi.cr +++ b/src/llvm/abi.cr @@ -1,4 +1,3 @@ -# Based on https://github.com/rust-lang/rust/blob/master/src/librustc_trans/trans/cabi.rs abstract class LLVM::ABI getter target_data : TargetData getter? osx : Bool diff --git a/src/llvm/abi/x86.cr b/src/llvm/abi/x86.cr index 28d0a6aabfb2..64976863a47c 100644 --- a/src/llvm/abi/x86.cr +++ b/src/llvm/abi/x86.cr @@ -1,6 +1,5 @@ require "../abi" -# Based on https://github.com/rust-lang/rust/blob/master/src/librustc_trans/trans/cabi_x86.rs class LLVM::ABI::X86 < LLVM::ABI def abi_info(atys : Array(Type), rty : Type, ret_def : Bool, context : Context) ret_ty = compute_return_type(rty, ret_def, context) diff --git a/src/llvm/abi/x86_64.cr b/src/llvm/abi/x86_64.cr index 2c91c6b233e5..9ce1b799ce83 100644 --- a/src/llvm/abi/x86_64.cr +++ b/src/llvm/abi/x86_64.cr @@ -1,6 +1,5 @@ require "../abi" -# Based on https://github.com/rust-lang/rust/blob/master/src/librustc_trans/trans/cabi_x86_64.rs class LLVM::ABI::X86_64 < LLVM::ABI def abi_info(atys : Array(Type), rty : Type, ret_def : Bool, context : Context) arg_tys = Array(LLVM::Type).new(atys.size)