summaryrefslogtreecommitdiffstats
path: root/lld/lib/ReaderWriter/ELF/Mips/MipsLinkingContext.cpp
diff options
context:
space:
mode:
authorRui Ueyama <ruiu@google.com>2015-04-03 19:32:31 +0000
committerRui Ueyama <ruiu@google.com>2015-04-03 19:32:31 +0000
commitbba452f23edca89f4c6cc31fd99be08a9069102b (patch)
tree15ed22403e145a8d4ea509d3aa44034384986331 /lld/lib/ReaderWriter/ELF/Mips/MipsLinkingContext.cpp
parent3bef6a380300986f61ba74be3b255a9d3cb6cd9f (diff)
downloadbcm5719-llvm-bba452f23edca89f4c6cc31fd99be08a9069102b.tar.gz
bcm5719-llvm-bba452f23edca89f4c6cc31fd99be08a9069102b.zip
ELF: Remove partial class definitions of <Arch>LinkingContexts.
What we are doing in ELFTarget.h was dubious. In the file, we define partial classes of <Arch>LinkingContexts to declare only static member functions. We have different (complete) class definitions in other files. They would conflict if they exist in the same compilation unit (because the ones defined in ELFTarget.h has only static member functions). I don't think this was valid C++. http://reviews.llvm.org/D8797 llvm-svn: 234039
Diffstat (limited to 'lld/lib/ReaderWriter/ELF/Mips/MipsLinkingContext.cpp')
-rw-r--r--lld/lib/ReaderWriter/ELF/Mips/MipsLinkingContext.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lld/lib/ReaderWriter/ELF/Mips/MipsLinkingContext.cpp b/lld/lib/ReaderWriter/ELF/Mips/MipsLinkingContext.cpp
index 5b06c38d0ef..59199347fdc 100644
--- a/lld/lib/ReaderWriter/ELF/Mips/MipsLinkingContext.cpp
+++ b/lld/lib/ReaderWriter/ELF/Mips/MipsLinkingContext.cpp
@@ -12,12 +12,13 @@
#include "MipsLinkingContext.h"
#include "MipsRelocationPass.h"
#include "MipsTargetHandler.h"
+#include "lld/ReaderWriter/ELFTargets.h"
using namespace lld;
using namespace lld::elf;
std::unique_ptr<ELFLinkingContext>
-MipsLinkingContext::create(llvm::Triple triple) {
+elf::createMipsLinkingContext(llvm::Triple triple) {
if (triple.getArch() == llvm::Triple::mipsel ||
triple.getArch() == llvm::Triple::mips64el)
return llvm::make_unique<MipsLinkingContext>(triple);
OpenPOWER on IntegriCloud