Fix WebAssembly build after r283702.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@283723 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Daniel Jasper 2016-10-10 06:49:55 +00:00
parent a9268c4935
commit a56b5b5487

View File

@ -19,8 +19,14 @@ using namespace llvm;
#define DEBUG_TYPE "wasm-target-info"
Target llvm::getTheWebAssemblyTarget32();
Target llvm::getTheWebAssemblyTarget64();
Target &llvm::getTheWebAssemblyTarget32() {
static Target TheWebAssemblyTarget32;
return TheWebAssemblyTarget32;
}
Target &llvm::getTheWebAssemblyTarget64() {
static Target TheWebAssemblyTarget64;
return TheWebAssemblyTarget64;
}
extern "C" void LLVMInitializeWebAssemblyTargetInfo() {
RegisterTarget<Triple::wasm32> X(getTheWebAssemblyTarget32(), "wasm32",