]> granicus.if.org Git - llvm/commitdiff
Remove the temporary code. NFC.
authorIgor Kudrin <ikudrin@accesssoftek.com>
Fri, 16 Aug 2019 03:40:04 +0000 (03:40 +0000)
committerIgor Kudrin <ikudrin@accesssoftek.com>
Fri, 16 Aug 2019 03:40:04 +0000 (03:40 +0000)
That should have been done in rL368156 but somehow was missed.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@369082 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/DebugInfo/DWARF/DWARFDataExtractor.h
lib/DebugInfo/DWARF/DWARFDataExtractor.cpp

index 059aa82fccda40a8137c5d934826e0fd6e0e7b69..fae30a54b35686b58f232e3dfc4321c8b64f68aa 100644 (file)
@@ -52,19 +52,6 @@ public:
                                        uint64_t AbsPosOffset = 0) const;
 
   size_t size() const { return Section == nullptr ? 0 : Section->Data.size(); }
-
-  // The following methods are temporarily kept in order to preserve
-  // compatibility with existing code and migrate to 64-bit offsets smoothly.
-  // They will be removed when the migration is finished.
-  // Please do not use them in new code.
-  uint64_t getRelocatedValue(uint32_t Size, uint32_t *Off,
-                             uint64_t *SectionIndex = nullptr) const;
-  uint64_t getRelocatedAddress(uint32_t *Off, uint64_t *SecIx = nullptr) const {
-    return getRelocatedValue(getAddressSize(), Off, SecIx);
-  }
-  Optional<uint64_t> getEncodedPointer(uint32_t *Offset, uint8_t Encoding,
-                                       uint64_t AbsPosOffset = 0) const;
-
 };
 
 } // end namespace llvm
index 491f6b08b0ad724eb3d3ed858efc7112bd064a2d..cb90f754a3529fe04d61be85afefec4ce8eacc07 100644 (file)
@@ -97,33 +97,3 @@ DWARFDataExtractor::getEncodedPointer(uint64_t *Offset, uint8_t Encoding,
 
   return Result;
 }
-
-// The following is temporary code aimed to preserve compatibility with
-// existing code which uses 32-bit offsets.
-// It will be removed when migration to 64-bit offsets is finished.
-
-namespace {
-
-class WrapOffset {
-  uint64_t Offset64;
-  uint32_t *Offset32;
-
-public:
-  WrapOffset(uint32_t *Offset)
-      : Offset64(*Offset), Offset32(Offset) {}
-  ~WrapOffset() { *Offset32 = Offset64; }
-  operator uint64_t *() { return &Offset64; }
-};
-
-}
-
-uint64_t DWARFDataExtractor::getRelocatedValue(uint32_t Size, uint32_t *Off,
-                                               uint64_t *SecNdx) const {
-  return getRelocatedValue(Size, WrapOffset(Off), SecNdx);
-}
-
-Optional<uint64_t>
-DWARFDataExtractor::getEncodedPointer(uint32_t *Offset, uint8_t Encoding,
-                                      uint64_t PCRelOffset) const {
-  return getEncodedPointer(WrapOffset(Offset), Encoding, PCRelOffset);
-}