[llvm] r242429 - Delete an unused function.

Rafael Espindola rafael.espindola at gmail.com
Thu Jul 16 11:41:42 PDT 2015


Author: rafael
Date: Thu Jul 16 13:41:41 2015
New Revision: 242429

URL: http://llvm.org/viewvc/llvm-project?rev=242429&view=rev
Log:
Delete an unused function.

Patch by Xan López!

Modified:
    llvm/trunk/tools/dsymutil/DwarfLinker.cpp

Modified: llvm/trunk/tools/dsymutil/DwarfLinker.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/dsymutil/DwarfLinker.cpp?rev=242429&r1=242428&r2=242429&view=diff
==============================================================================
--- llvm/trunk/tools/dsymutil/DwarfLinker.cpp (original)
+++ llvm/trunk/tools/dsymutil/DwarfLinker.cpp Thu Jul 16 13:41:41 2015
@@ -324,12 +324,6 @@ public:
   /// one.
   uint32_t getStringOffset(StringRef S);
 
-  /// \brief Get permanent storage for \p S (but do not necessarily
-  /// emit \p S in the output section).
-  /// \returns The StringRef that points to permanent storage to use
-  /// in place of \p S.
-  StringRef internString(StringRef S);
-
   // \brief Return the first entry of the string table.
   const MapTy::MapEntryTy *getFirstEntry() const {
     return getNextEntry(&Sentinel);
@@ -373,16 +367,6 @@ uint32_t NonRelocatableStringpool::getSt
   return It->getValue().first;
 }
 
-/// \brief Put \p S into the StringMap so that it gets permanent
-/// storage, but do not actually link it in the chain of elements
-/// that go into the output section. A latter call to
-/// getStringOffset() with the same string will chain it though.
-StringRef NonRelocatableStringpool::internString(StringRef S) {
-  std::pair<uint32_t, StringMapEntryBase *> Entry(0, nullptr);
-  auto InsertResult = Strings.insert(std::make_pair(S, Entry));
-  return InsertResult.first->getKey();
-}
-
 /// \brief The Dwarf streaming logic
 ///
 /// All interactions with the MC layer that is used to build the debug






More information about the llvm-commits mailing list