Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(88)

Unified Diff: experimental/visual_studio_plugin/src/dwarf_reader/elf_section_reader.cc

Issue 10928195: First round of dead file removal (Closed) Base URL: https://github.com/samclegg/nativeclient-sdk.git@master
Patch Set: Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: experimental/visual_studio_plugin/src/dwarf_reader/elf_section_reader.cc
diff --git a/experimental/visual_studio_plugin/src/dwarf_reader/elf_section_reader.cc b/experimental/visual_studio_plugin/src/dwarf_reader/elf_section_reader.cc
deleted file mode 100644
index 1b48799096e6cab3786734a0c3b0a5b7db2506d3..0000000000000000000000000000000000000000
--- a/experimental/visual_studio_plugin/src/dwarf_reader/elf_section_reader.cc
+++ /dev/null
@@ -1,74 +0,0 @@
-// Copyright (c) 2011 The Native Client Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "dwarf_reader/elf_section_reader.h"
-
-namespace dwarf_reader {
-
-ElfSectionReader::ElfSectionReader() : byte_reader_(NULL) {}
-
-ElfSectionReader::~ElfSectionReader() {
- if (byte_reader_)
- delete byte_reader_;
-}
-
-const dwarf2reader::SectionMap& ElfSectionReader::sections() const {
- return sections_;
-}
-
-void ElfSectionReader::Init(const char *name,
- void *data,
- uint64_t length,
- uint32_t classSize,
- bool is_little_endian) {
- if (is_little_endian)
- byte_reader_ = new dwarf2reader::ByteReader(
- dwarf2reader::ENDIANNESS_LITTLE);
- else
- byte_reader_ = new dwarf2reader::ByteReader(
- dwarf2reader::ENDIANNESS_BIG);
-}
-
-bool ElfSectionReader::SectionHeadersStart(uint32_t count) {
- return true;
-}
-
-void ElfSectionReader::AddSectionHeader(const char *name,
- void *data,
- uint64_t virt,
- uint32_t type,
- uint32_t flags,
- uint64_t length) {
- const char *ptr = reinterpret_cast<const char *>(data);
- sections_[name] = SectionInfo(ptr, length);
- loadAddresses_[name] = virt;
-}
-
-dwarf2reader::ByteReader *ElfSectionReader::GetByteReader() const {
- return byte_reader_;
-}
-
-SectionInfo ElfSectionReader::GetSectionInfo(const char *name) const {
- dwarf2reader::SectionMap::const_iterator map_iter =
- sections_.find(name);
- if (map_iter != sections_.end())
- return map_iter->second;
- else
- return SectionInfo(NULL, 0);
-}
-
-uint64 ElfSectionReader::GetSectionLoadAddress(const char *name) const {
- LoadAddressMap::const_iterator address_iter =
- loadAddresses_.find(name);
- if (address_iter != loadAddresses_.end())
- return address_iter->second;
- else
- return 0;
-}
-
-bool ElfSectionReader::IsEmpty() const {
- return (sections_.empty() || loadAddresses_.empty());
-}
-
-} // namespace dwarf_reader

Powered by Google App Engine
This is Rietveld 408576698