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:
parent
b7fa3e8fa1
commit
bb2d613e39
5 changed files with 17 additions and 1 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue