forked from OSchip/llvm-project
[Scalar] Remove partially wrong and unused functions.
I originally thought about fixing them, but hey, nobody is using them anyway. llvm-svn: 352643
This commit is contained in:
parent
5590a4355f
commit
042f770738
|
@ -252,10 +252,6 @@ public:
|
|||
|
||||
llvm::APInt UInt128(const llvm::APInt &fail_value) const;
|
||||
|
||||
llvm::APInt SInt256(llvm::APInt &fail_value) const;
|
||||
|
||||
llvm::APInt UInt256(const llvm::APInt &fail_value) const;
|
||||
|
||||
float Float(float fail_value = 0.0f) const;
|
||||
|
||||
double Double(double fail_value = 0.0) const;
|
||||
|
|
|
@ -1649,56 +1649,6 @@ llvm::APInt Scalar::UInt128(const llvm::APInt &fail_value) const {
|
|||
return fail_value;
|
||||
}
|
||||
|
||||
llvm::APInt Scalar::SInt256(llvm::APInt &fail_value) const {
|
||||
switch (m_type) {
|
||||
case e_void:
|
||||
break;
|
||||
case e_sint:
|
||||
case e_uint:
|
||||
case e_slong:
|
||||
case e_ulong:
|
||||
case e_slonglong:
|
||||
case e_ulonglong:
|
||||
case e_sint128:
|
||||
case e_uint128:
|
||||
case e_sint256:
|
||||
case e_uint256:
|
||||
case e_uint512:
|
||||
case e_sint512:
|
||||
return m_integer;
|
||||
case e_float:
|
||||
case e_double:
|
||||
case e_long_double:
|
||||
return m_float.bitcastToAPInt();
|
||||
}
|
||||
return fail_value;
|
||||
}
|
||||
|
||||
llvm::APInt Scalar::UInt256(const llvm::APInt &fail_value) const {
|
||||
switch (m_type) {
|
||||
case e_void:
|
||||
break;
|
||||
case e_sint:
|
||||
case e_uint:
|
||||
case e_slong:
|
||||
case e_ulong:
|
||||
case e_slonglong:
|
||||
case e_ulonglong:
|
||||
case e_sint128:
|
||||
case e_uint128:
|
||||
case e_sint256:
|
||||
case e_uint256:
|
||||
case e_sint512:
|
||||
case e_uint512:
|
||||
return m_integer;
|
||||
case e_float:
|
||||
case e_double:
|
||||
case e_long_double:
|
||||
return m_float.bitcastToAPInt();
|
||||
}
|
||||
return fail_value;
|
||||
}
|
||||
|
||||
float Scalar::Float(float fail_value) const {
|
||||
switch (m_type) {
|
||||
case e_void:
|
||||
|
|
Loading…
Reference in New Issue