Mercurial > hg > Members > tobaru > cbc > CbC_llvm
diff lib/Target/SystemZ/TargetInfo/SystemZTargetInfo.cpp @ 120:1172e4bd9c6f
update 4.0.0
author | mir3636 |
---|---|
date | Fri, 25 Nov 2016 19:14:25 +0900 |
parents | 95c75e76d11b |
children |
line wrap: on
line diff
--- a/lib/Target/SystemZ/TargetInfo/SystemZTargetInfo.cpp Tue Jan 26 22:56:36 2016 +0900 +++ b/lib/Target/SystemZ/TargetInfo/SystemZTargetInfo.cpp Fri Nov 25 19:14:25 2016 +0900 @@ -12,9 +12,12 @@ using namespace llvm; -Target llvm::TheSystemZTarget; +Target &llvm::getTheSystemZTarget() { + static Target TheSystemZTarget; + return TheSystemZTarget; +} extern "C" void LLVMInitializeSystemZTargetInfo() { - RegisterTarget<Triple::systemz, /*HasJIT=*/true> - X(TheSystemZTarget, "systemz", "SystemZ"); + RegisterTarget<Triple::systemz, /*HasJIT=*/true> X(getTheSystemZTarget(), + "systemz", "SystemZ"); }