Fix single-arch builds broken by r226976

TODO: Move ELF/PPC to ELF/PowerPC
TODO: Move ELF/X86_64 into ELF/X86
llvm-svn: 226989
This commit is contained in:
Greg Fitzgerald 2015-01-24 04:51:26 +00:00
parent a8cf495a15
commit 5aed2f1ea2
2 changed files with 10 additions and 11 deletions

View File

@ -20,19 +20,17 @@ namespace elf {
public: \
static std::unique_ptr<ELFLinkingContext> create(llvm::Triple); \
};
#include "llvm/Config/Targets.def"
// X86 => X86,X86_64
class X86_64LinkingContext final : public ELFLinkingContext {
public:
static std::unique_ptr<ELFLinkingContext> create(llvm::Triple); \
};
// FIXME: #include "llvm/Config/Targets.def"
LLVM_TARGET(AArch64)
LLVM_TARGET(ARM)
LLVM_TARGET(Hexagon)
LLVM_TARGET(Mips)
LLVM_TARGET(PPC)
LLVM_TARGET(X86)
LLVM_TARGET(X86_64)
// PowerPC => PPC
class PPCLinkingContext final : public ELFLinkingContext {
public:
static std::unique_ptr<ELFLinkingContext> create(llvm::Triple); \
};
#undef LLVM_TARGET
} // end namespace elf
} // end namespace lld

View File

@ -331,6 +331,7 @@ createELFLinkingContext(llvm::Triple triple) {
LLVM_TARGET(X86_64)
return nullptr;
}
#undef LLVM_TARGET
bool GnuLdDriver::parse(int argc, const char *argv[],
std::unique_ptr<ELFLinkingContext> &context,