mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
add a default parameter
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36529 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
bb58b9c3c0
commit
4c27344bfd
@ -339,9 +339,11 @@ public:
|
||||
}
|
||||
|
||||
/// getValueType - Return the MVT::ValueType corresponding to this LLVM type.
|
||||
/// This is fixed by the LLVM operations except for the pointer size.
|
||||
MVT::ValueType getValueType(const Type *Ty) const {
|
||||
MVT::ValueType VT = MVT::getValueType(Ty);
|
||||
/// This is fixed by the LLVM operations except for the pointer size. If
|
||||
/// AllowUnknown is true, this will return MVT::Other for types with no MVT
|
||||
/// counterpart (e.g. structs), otherwise it will assert.
|
||||
MVT::ValueType getValueType(const Type *Ty, bool AllowUnknown = false) const {
|
||||
MVT::ValueType VT = MVT::getValueType(Ty, AllowUnknown);
|
||||
return VT == MVT::iPTR ? PointerTy : VT;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user