Fix incomplete merge from scratch branch

git-svn-id: http://llvm-py.googlecode.com/svn/trunk@102 8d1e9007-1d4e-0410-b67e-1979fd6579aa
This commit is contained in:
mdevan.foobar 2010-10-24 08:40:50 +00:00
commit bb2d613e39
5 changed files with 17 additions and 1 deletions

View file

@ -463,6 +463,15 @@ int LLVMInlineFunction(LLVMValueRef call)
return llvm::InlineFunction(cs, unused);
}
unsigned LLVMGetParamAlignment(LLVMValueRef arg)
{
llvm::Argument *argp = llvm::unwrap<llvm::Argument>(arg);
assert(argp);
unsigned argno = argp->getArgNo();
return argp->getParent()->getParamAlignment(argno + 1);
}
/* Passes. A few passes (listed below) are used directly from LLVM-C,
* rest are defined here.