[Lldb-commits] [lldb] r352643 - [Scalar] Remove partially wrong and unused functions.

Davide Italiano via lldb-commits lldb-commits at lists.llvm.org
Wed Jan 30 10:40:05 PST 2019


Author: davide
Date: Wed Jan 30 10:40:05 2019
New Revision: 352643

URL: http://llvm.org/viewvc/llvm-project?rev=352643&view=rev
Log:
[Scalar] Remove partially wrong and unused functions.

I originally thought about fixing them, but hey, nobody is
using them anyway.

Modified:
    lldb/trunk/include/lldb/Utility/Scalar.h
    lldb/trunk/source/Utility/Scalar.cpp

Modified: lldb/trunk/include/lldb/Utility/Scalar.h
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/include/lldb/Utility/Scalar.h?rev=352643&r1=352642&r2=352643&view=diff
==============================================================================
--- lldb/trunk/include/lldb/Utility/Scalar.h (original)
+++ lldb/trunk/include/lldb/Utility/Scalar.h Wed Jan 30 10:40:05 2019
@@ -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;

Modified: lldb/trunk/source/Utility/Scalar.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Utility/Scalar.cpp?rev=352643&r1=352642&r2=352643&view=diff
==============================================================================
--- lldb/trunk/source/Utility/Scalar.cpp (original)
+++ lldb/trunk/source/Utility/Scalar.cpp Wed Jan 30 10:40:05 2019
@@ -1649,56 +1649,6 @@ llvm::APInt Scalar::UInt128(const llvm::
   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:




More information about the lldb-commits mailing list