summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-objcopy/Object.h
diff options
context:
space:
mode:
authorAaron Ballman <aaron@aaronballman.com>2018-01-25 21:08:23 +0000
committerAaron Ballman <aaron@aaronballman.com>2018-01-25 21:08:23 +0000
commit4af8836398de6b8a72afe61a893c798795ebe4ec (patch)
tree8d64c74866b987503297edd1955a7f6ce07027ff /llvm/tools/llvm-objcopy/Object.h
parent09f46a76d9721beb257182f62aa60df9e3119193 (diff)
downloadbcm5719-llvm-4af8836398de6b8a72afe61a893c798795ebe4ec.tar.gz
bcm5719-llvm-4af8836398de6b8a72afe61a893c798795ebe4ec.zip
Revert r322132; it appears to be an accidental commit, based on the commit message. The original author of the commit has not commented on whether this was accidental or purposeful, so if this revert is in error, the author can re-commit with an actual commit message.
llvm-svn: 323466
Diffstat (limited to 'llvm/tools/llvm-objcopy/Object.h')
-rw-r--r--llvm/tools/llvm-objcopy/Object.h20
1 files changed, 0 insertions, 20 deletions
diff --git a/llvm/tools/llvm-objcopy/Object.h b/llvm/tools/llvm-objcopy/Object.h
index 6ac7edd32ae..17ea6c9413b 100644
--- a/llvm/tools/llvm-objcopy/Object.h
+++ b/llvm/tools/llvm-objcopy/Object.h
@@ -16,7 +16,6 @@
#include "llvm/BinaryFormat/ELF.h"
#include "llvm/MC/StringTableBuilder.h"
#include "llvm/Object/ELFObjectFile.h"
-#include "llvm/Support/JamCRC.h"
#include <cstddef>
#include <cstdint>
#include <functional>
@@ -346,24 +345,6 @@ public:
}
};
-template <class ELFT> class GnuDebugLinkSection : public SectionBase {
-private:
- // Elf_Word is 4-bytes on every format but has the same endianess as the elf
- // type ELFT. We'll need to write the CRC32 out in the proper endianess so
- // we'll make sure to use this type.
- using Elf_Word = typename ELFT::Word;
-
- StringRef FileName;
- uint32_t CRC32;
-
- void init(StringRef File, StringRef Data);
-
-public:
- // If we add this section from an external source we can use this ctor.
- GnuDebugLinkSection(StringRef File);
- void writeSection(FileOutputBuffer &Out) const override;
-};
-
template <class ELFT> class Object {
private:
using SecPtr = std::unique_ptr<SectionBase>;
@@ -408,7 +389,6 @@ public:
const SectionBase *getSectionHeaderStrTab() const { return SectionNames; }
void removeSections(std::function<bool(const SectionBase &)> ToRemove);
void addSection(StringRef SecName, ArrayRef<uint8_t> Data);
- void addGnuDebugLink(StringRef File);
virtual size_t totalSize() const = 0;
virtual void finalize() = 0;
virtual void write(FileOutputBuffer &Out) const = 0;
OpenPOWER on IntegriCloud