[Lldb-commits] [lldb] r339206 - Delete a dead Function constructor (NFC)

Vedant Kumar via lldb-commits lldb-commits at lists.llvm.org
Tue Aug 7 16:48:40 PDT 2018


Author: vedantk
Date: Tue Aug  7 16:48:40 2018
New Revision: 339206

URL: http://llvm.org/viewvc/llvm-project?rev=339206&view=rev
Log:
Delete a dead Function constructor (NFC)

Modified:
    lldb/trunk/include/lldb/Symbol/Function.h
    lldb/trunk/source/Symbol/Function.cpp

Modified: lldb/trunk/include/lldb/Symbol/Function.h
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/include/lldb/Symbol/Function.h?rev=339206&r1=339205&r2=339206&view=diff
==============================================================================
--- lldb/trunk/include/lldb/Symbol/Function.h (original)
+++ lldb/trunk/include/lldb/Symbol/Function.h Tue Aug  7 16:48:40 2018
@@ -349,40 +349,6 @@ public:
            Type *func_type, const AddressRange &range);
 
   //------------------------------------------------------------------
-  /// Construct with a compile unit, function UID, function type UID, optional
-  /// mangled name, function type, and a section offset based address range.
-  ///
-  /// @param[in] comp_unit
-  ///     The compile unit to which this function belongs.
-  ///
-  /// @param[in] func_uid
-  ///     The UID for this function. This value is provided by the
-  ///     SymbolFile plug-in and can be any value that allows
-  ///     the plug-in to quickly find and parse more detailed
-  ///     information when and if more information is needed.
-  ///
-  /// @param[in] func_type_uid
-  ///     The type UID for the function Type to allow for lazy type
-  ///     parsing from the debug information.
-  ///
-  /// @param[in] mangled
-  ///     The optional mangled name for this function. If empty, there
-  ///     is no mangled information.
-  ///
-  /// @param[in] func_type
-  ///     The optional function type. If NULL, the function type will
-  ///     be parsed on demand when accessed using the
-  ///     Function::GetType() function by asking the SymbolFile
-  ///     plug-in to get the type for \a func_type_uid.
-  ///
-  /// @param[in] range
-  ///     The section offset based address for this function.
-  //------------------------------------------------------------------
-  Function(CompileUnit *comp_unit, lldb::user_id_t func_uid,
-           lldb::user_id_t func_type_uid, const char *mangled, Type *func_type,
-           const AddressRange &range);
-
-  //------------------------------------------------------------------
   /// Destructor.
   //------------------------------------------------------------------
   ~Function() override;

Modified: lldb/trunk/source/Symbol/Function.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Symbol/Function.cpp?rev=339206&r1=339205&r2=339206&view=diff
==============================================================================
--- lldb/trunk/source/Symbol/Function.cpp (original)
+++ lldb/trunk/source/Symbol/Function.cpp Tue Aug  7 16:48:40 2018
@@ -141,17 +141,6 @@ Function::Function(CompileUnit *comp_uni
   assert(comp_unit != nullptr);
 }
 
-Function::Function(CompileUnit *comp_unit, lldb::user_id_t func_uid,
-                   lldb::user_id_t type_uid, const char *mangled, Type *type,
-                   const AddressRange &range)
-    : UserID(func_uid), m_comp_unit(comp_unit), m_type_uid(type_uid),
-      m_type(type), m_mangled(ConstString(mangled), true), m_block(func_uid),
-      m_range(range), m_frame_base(nullptr), m_flags(),
-      m_prologue_byte_size(0) {
-  m_block.SetParentScope(this);
-  assert(comp_unit != nullptr);
-}
-
 Function::~Function() {}
 
 void Function::GetStartLineSourceInfo(FileSpec &source_file,




More information about the lldb-commits mailing list