[lld] r234834 - ELF: Remove almost empty class.

Rui Ueyama ruiu at google.com
Mon Apr 13 18:15:43 PDT 2015


Author: ruiu
Date: Mon Apr 13 20:15:43 2015
New Revision: 234834

URL: http://llvm.org/viewvc/llvm-project?rev=234834&view=rev
Log:
ELF: Remove almost empty class.

Removed:
    lld/trunk/lib/ReaderWriter/ELF/Hexagon/HexagonExecutableAtoms.h
Modified:
    lld/trunk/lib/ReaderWriter/ELF/Hexagon/HexagonDynamicLibraryWriter.h
    lld/trunk/lib/ReaderWriter/ELF/Hexagon/HexagonExecutableWriter.h
    lld/trunk/lib/ReaderWriter/ELF/Hexagon/HexagonTargetHandler.h

Modified: lld/trunk/lib/ReaderWriter/ELF/Hexagon/HexagonDynamicLibraryWriter.h
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/ReaderWriter/ELF/Hexagon/HexagonDynamicLibraryWriter.h?rev=234834&r1=234833&r2=234834&view=diff
==============================================================================
--- lld/trunk/lib/ReaderWriter/ELF/Hexagon/HexagonDynamicLibraryWriter.h (original)
+++ lld/trunk/lib/ReaderWriter/ELF/Hexagon/HexagonDynamicLibraryWriter.h Mon Apr 13 20:15:43 2015
@@ -10,7 +10,6 @@
 #define HEXAGON_DYNAMIC_LIBRARY_WRITER_H
 
 #include "DynamicLibraryWriter.h"
-#include "HexagonExecutableAtoms.h"
 #include "HexagonLinkingContext.h"
 
 namespace lld {
@@ -49,7 +48,8 @@ void HexagonDynamicLibraryWriter::create
     std::vector<std::unique_ptr<File>> &result) {
   DynamicLibraryWriter<ELF32LE>::createImplicitFiles(result);
   // Add the default atoms as defined for hexagon
-  auto file = llvm::make_unique<HexagonRuntimeFile>(_ctx);
+  auto file =
+      llvm::make_unique<RuntimeFile<ELF32LE>>(_ctx, "Hexagon runtime file");
   file->addAbsoluteAtom("_GLOBAL_OFFSET_TABLE_");
   file->addAbsoluteAtom("_DYNAMIC");
   result.push_back(std::move(file));

Removed: lld/trunk/lib/ReaderWriter/ELF/Hexagon/HexagonExecutableAtoms.h
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/ReaderWriter/ELF/Hexagon/HexagonExecutableAtoms.h?rev=234833&view=auto
==============================================================================
--- lld/trunk/lib/ReaderWriter/ELF/Hexagon/HexagonExecutableAtoms.h (original)
+++ lld/trunk/lib/ReaderWriter/ELF/Hexagon/HexagonExecutableAtoms.h (removed)
@@ -1,27 +0,0 @@
-//===- lib/ReaderWriter/ELF/Hexagon/HexagonExecutableAtoms.h --------------===//
-//
-//                             The LLVM Linker
-//
-// This file is distributed under the University of Illinois Open Source
-// License. See LICENSE.TXT for details.
-//
-//===----------------------------------------------------------------------===//
-
-#ifndef LLD_READER_WRITER_ELF_HEXAGON_HEXAGON_EXECUTABLE_ATOM_H
-#define LLD_READER_WRITER_ELF_HEXAGON_HEXAGON_EXECUTABLE_ATOM_H
-
-#include "ELFFile.h"
-
-namespace lld {
-class ELFLinkingContext;
-
-namespace elf {
-class HexagonRuntimeFile : public RuntimeFile<ELF32LE> {
-public:
-  HexagonRuntimeFile(ELFLinkingContext &ctx)
-      : RuntimeFile<ELF32LE>(ctx, "Hexagon runtime file") {}
-};
-} // elf
-} // lld
-
-#endif // LLD_READER_WRITER_ELF_HEXAGON_HEXAGON_EXECUTABLE_ATOM_H

Modified: lld/trunk/lib/ReaderWriter/ELF/Hexagon/HexagonExecutableWriter.h
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/ReaderWriter/ELF/Hexagon/HexagonExecutableWriter.h?rev=234834&r1=234833&r2=234834&view=diff
==============================================================================
--- lld/trunk/lib/ReaderWriter/ELF/Hexagon/HexagonExecutableWriter.h (original)
+++ lld/trunk/lib/ReaderWriter/ELF/Hexagon/HexagonExecutableWriter.h Mon Apr 13 20:15:43 2015
@@ -10,7 +10,6 @@
 #define HEXAGON_EXECUTABLE_WRITER_H
 
 #include "ExecutableWriter.h"
-#include "HexagonExecutableAtoms.h"
 #include "HexagonLinkingContext.h"
 #include "HexagonTargetHandler.h"
 
@@ -50,7 +49,8 @@ void HexagonExecutableWriter::createImpl
     std::vector<std::unique_ptr<File>> &result) {
   ExecutableWriter<ELF32LE>::createImplicitFiles(result);
   // Add the default atoms as defined for hexagon
-  auto file = llvm::make_unique<HexagonRuntimeFile>(_ctx);
+  auto file =
+      llvm::make_unique<RuntimeFile<ELF32LE>>(_ctx, "Hexagon runtime file");
   file->addAbsoluteAtom("_SDA_BASE_");
   if (this->_ctx.isDynamic()) {
     file->addAbsoluteAtom("_GLOBAL_OFFSET_TABLE_");

Modified: lld/trunk/lib/ReaderWriter/ELF/Hexagon/HexagonTargetHandler.h
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/ReaderWriter/ELF/Hexagon/HexagonTargetHandler.h?rev=234834&r1=234833&r2=234834&view=diff
==============================================================================
--- lld/trunk/lib/ReaderWriter/ELF/Hexagon/HexagonTargetHandler.h (original)
+++ lld/trunk/lib/ReaderWriter/ELF/Hexagon/HexagonTargetHandler.h Mon Apr 13 20:15:43 2015
@@ -12,7 +12,6 @@
 
 #include "ELFReader.h"
 #include "HexagonELFFile.h"
-#include "HexagonExecutableAtoms.h"
 #include "HexagonRelocationHandler.h"
 #include "TargetLayout.h"
 





More information about the llvm-commits mailing list