Index: lib/Basic/Targets.cpp |
diff --git a/lib/Basic/Targets.cpp b/lib/Basic/Targets.cpp |
index fe4d5334492960bacd430d31cfd0689646ad01b3..f79e7a3be5780e651546e24f01c8a513fb839774 100644 |
--- a/lib/Basic/Targets.cpp |
+++ b/lib/Basic/Targets.cpp |
@@ -27,6 +27,7 @@ |
#include "llvm/ADT/Triple.h" |
#include "llvm/MC/MCSectionMachO.h" |
#include "llvm/Support/ErrorHandling.h" |
+#include "llvm/Support/TargetRegistry.h" // @LOCALMOD |
#include <algorithm> |
#include <memory> |
using namespace clang; |
@@ -6490,6 +6491,12 @@ void PNaClTargetInfo::getGCCRegAliases(const GCCRegAlias *&Aliases, |
NumAliases = 0; |
} |
+namespace { |
+llvm::Target PNaClTarget; |
+llvm::RegisterTarget<llvm::Triple::le32, /*HasJIT=*/false> P( |
+ PNaClTarget, "le32", "PNaCl"); |
+} // end anonymous namespace. |
+ |
// We attempt to use PNaCl (le32) frontend and Mips32EL backend. |
class NaClMips32ELTargetInfo : public Mips32ELTargetInfo { |
public: |