mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-12 17:32:19 +00:00
For PR1146:
Parameter attributes can now be defaulted for intrinsics. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35809 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
b138a0657f
commit
ac66f4241d
@ -13,6 +13,7 @@
|
|||||||
|
|
||||||
#include "llvm/Module.h"
|
#include "llvm/Module.h"
|
||||||
#include "llvm/DerivedTypes.h"
|
#include "llvm/DerivedTypes.h"
|
||||||
|
#include "llvm/ParameterAttributes.h"
|
||||||
#include "llvm/IntrinsicInst.h"
|
#include "llvm/IntrinsicInst.h"
|
||||||
#include "llvm/Support/LeakDetector.h"
|
#include "llvm/Support/LeakDetector.h"
|
||||||
#include "SymbolTableListTraitsImpl.h"
|
#include "SymbolTableListTraitsImpl.h"
|
||||||
@ -197,14 +198,13 @@ const FunctionType *Intrinsic::getType(ID id, const Type **Tys,
|
|||||||
uint32_t numTys) {
|
uint32_t numTys) {
|
||||||
const Type *ResultTy = NULL;
|
const Type *ResultTy = NULL;
|
||||||
std::vector<const Type*> ArgTys;
|
std::vector<const Type*> ArgTys;
|
||||||
std::vector<FunctionType::ParameterAttributes> Attrs;
|
|
||||||
bool IsVarArg = false;
|
bool IsVarArg = false;
|
||||||
|
|
||||||
#define GET_INTRINSIC_GENERATOR
|
#define GET_INTRINSIC_GENERATOR
|
||||||
#include "llvm/Intrinsics.gen"
|
#include "llvm/Intrinsics.gen"
|
||||||
#undef GET_INTRINSIC_GENERATOR
|
#undef GET_INTRINSIC_GENERATOR
|
||||||
|
|
||||||
return FunctionType::get(ResultTy, ArgTys, IsVarArg, Attrs);
|
return FunctionType::get(ResultTy, ArgTys, IsVarArg);
|
||||||
}
|
}
|
||||||
|
|
||||||
Function *Intrinsic::getDeclaration(Module *M, ID id, const Type **Tys,
|
Function *Intrinsic::getDeclaration(Module *M, ID id, const Type **Tys,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user