From: Davide Italiano Date: Wed, 30 Jan 2019 18:40:05 +0000 (+0000) Subject: [Scalar] Remove partially wrong and unused functions. X-Git-Tag: llvmorg-10-init~13265 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=042f770738079e4a061674934a8ba6ccb0654ac4;p=platform%2Fupstream%2Fllvm.git [Scalar] Remove partially wrong and unused functions. I originally thought about fixing them, but hey, nobody is using them anyway. llvm-svn: 352643 --- diff --git a/lldb/include/lldb/Utility/Scalar.h b/lldb/include/lldb/Utility/Scalar.h index bd5ac4f..ac8cf0a 100644 --- a/lldb/include/lldb/Utility/Scalar.h +++ b/lldb/include/lldb/Utility/Scalar.h @@ -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; diff --git a/lldb/source/Utility/Scalar.cpp b/lldb/source/Utility/Scalar.cpp index 1f67a9b..b56a6d0 100644 --- a/lldb/source/Utility/Scalar.cpp +++ b/lldb/source/Utility/Scalar.cpp @@ -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: