summaryrefslogtreecommitdiffstats
path: root/lld/include
diff options
context:
space:
mode:
authorRui Ueyama <ruiu@google.com>2015-04-04 03:24:42 +0000
committerRui Ueyama <ruiu@google.com>2015-04-04 03:24:42 +0000
commit09f8b75b52f1dded407d00cee4c582e7c5b094f0 (patch)
tree36ec94676cbc1d2b5497fa92de464438eb5745d2 /lld/include
parent59b0bfef0df93d5e0f67c44dce999aa91d26f13f (diff)
downloadbcm5719-llvm-09f8b75b52f1dded407d00cee4c582e7c5b094f0.tar.gz
bcm5719-llvm-09f8b75b52f1dded407d00cee4c582e7c5b094f0.zip
ELF: Merge ELFTargets.h with ELFLinkingContext.h.
These functions are "constructors" of the LinkingContexts. We already have auxiliary classes and functions for ELFLinkingContext in the header. They fall in the same category. llvm-svn: 234082
Diffstat (limited to 'lld/include')
-rw-r--r--lld/include/lld/ReaderWriter/ELFLinkingContext.h9
-rw-r--r--lld/include/lld/ReaderWriter/ELFTargets.h29
2 files changed, 9 insertions, 29 deletions
diff --git a/lld/include/lld/ReaderWriter/ELFLinkingContext.h b/lld/include/lld/ReaderWriter/ELFLinkingContext.h
index eaf12c38e96..12e41236fa9 100644
--- a/lld/include/lld/ReaderWriter/ELFLinkingContext.h
+++ b/lld/include/lld/ReaderWriter/ELFLinkingContext.h
@@ -38,6 +38,14 @@ class Reference;
namespace elf {
class ELFWriter;
+std::unique_ptr<ELFLinkingContext> createAArch64LinkingContext(llvm::Triple);
+std::unique_ptr<ELFLinkingContext> createARMLinkingContext(llvm::Triple);
+std::unique_ptr<ELFLinkingContext> createExampleLinkingContext(llvm::Triple);
+std::unique_ptr<ELFLinkingContext> createHexagonLinkingContext(llvm::Triple);
+std::unique_ptr<ELFLinkingContext> createMipsLinkingContext(llvm::Triple);
+std::unique_ptr<ELFLinkingContext> createX86LinkingContext(llvm::Triple);
+std::unique_ptr<ELFLinkingContext> createX86_64LinkingContext(llvm::Triple);
+
class TargetRelocationHandler {
public:
virtual ~TargetRelocationHandler() {}
@@ -361,6 +369,7 @@ protected:
// in the current linking context via _linkerScriptSema.
script::Sema _linkerScriptSema;
};
+
} // end namespace lld
#endif
diff --git a/lld/include/lld/ReaderWriter/ELFTargets.h b/lld/include/lld/ReaderWriter/ELFTargets.h
deleted file mode 100644
index 3eed62c9a4c..00000000000
--- a/lld/include/lld/ReaderWriter/ELFTargets.h
+++ /dev/null
@@ -1,29 +0,0 @@
-//===- lld/ReaderWriter/ELFTargets.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_TARGETS_H
-#define LLD_READER_WRITER_ELF_TARGETS_H
-
-#include "ELFLinkingContext.h"
-
-namespace lld {
-namespace elf {
-
-std::unique_ptr<ELFLinkingContext> createAArch64LinkingContext(llvm::Triple);
-std::unique_ptr<ELFLinkingContext> createARMLinkingContext(llvm::Triple);
-std::unique_ptr<ELFLinkingContext> createExampleLinkingContext(llvm::Triple);
-std::unique_ptr<ELFLinkingContext> createHexagonLinkingContext(llvm::Triple);
-std::unique_ptr<ELFLinkingContext> createMipsLinkingContext(llvm::Triple);
-std::unique_ptr<ELFLinkingContext> createX86LinkingContext(llvm::Triple);
-std::unique_ptr<ELFLinkingContext> createX86_64LinkingContext(llvm::Triple);
-
-} // end namespace elf
-} // end namespace lld
-
-#endif
OpenPOWER on IntegriCloud