Displaying 2 results from an estimated 2 matches for "sintty".
Did you mean:
intty
2003 Nov 21
2
[LLVMdev] GetElementPtrInst Again!
I'm trying to set up a call to printf in stacker and have managed to
confuse myself. Perhaps you can shed some light.
I've declared printf as a function taking a pointer to SByteTy with var
args and returning SIntTy:
> // Create a function for output (int printf(format,...))
> std::vector<Type*> params;
> params.push_back( PointerType::get( Type::SByteTy ) );
> FunctionType* printf_type = FunctionType::get( Type::IntTy, params, true );
> ThePrintf = new Function( printf_type,...
2003 Nov 21
0
[LLVMdev] GetElementPtrInst Again!
On Fri, 21 Nov 2003, Reid Spencer wrote:
> I'm trying to set up a call to printf in stacker and have managed to
> confuse myself. Perhaps you can shed some light.
:)
> I've declared printf as a function taking a pointer to SByteTy with var
> args and returning SIntTy:
Sounds good.
> When I set up the call, I get the following from that pesky :) verifier:
Ah, but it's so helpful! :)
> Call parameter type does not match function signature!
> getelementptr [3 x sbyte]* %_str_format_, long 0 ; <[3 x sbyte]*>:0 [#uses=1...