summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2015-07-16 18:41:41 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2015-07-16 18:41:41 +0000
commitfb8e2d22fb21f35c6b2a2ddc35e652a9c99a2b00 (patch)
treec944a0f602adedf47867058db231e2459f27400d /llvm
parentf4ce569debc99c70c9cf9a74b4c890c32cb741bc (diff)
downloadbcm5719-llvm-fb8e2d22fb21f35c6b2a2ddc35e652a9c99a2b00.tar.gz
bcm5719-llvm-fb8e2d22fb21f35c6b2a2ddc35e652a9c99a2b00.zip
Delete an unused function.
Patch by Xan López! llvm-svn: 242429
Diffstat (limited to 'llvm')
-rw-r--r--llvm/tools/dsymutil/DwarfLinker.cpp16
1 files changed, 0 insertions, 16 deletions
diff --git a/llvm/tools/dsymutil/DwarfLinker.cpp b/llvm/tools/dsymutil/DwarfLinker.cpp
index 6e9087c70ec..86c22ddfd89 100644
--- a/llvm/tools/dsymutil/DwarfLinker.cpp
+++ b/llvm/tools/dsymutil/DwarfLinker.cpp
@@ -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::getStringOffset(StringRef S) {
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
OpenPOWER on IntegriCloud