From 2098fd3a8bd8fa511ad9d52cfcdc989d503baa95 Mon Sep 17 00:00:00 2001 From: Jeff Bush Date: Sun, 25 Jun 2017 22:20:55 -0700 Subject: [PATCH] Override isMachineVerifierClean and make it return false In the last upstream sync, change 304320 was merged which added this to all backends. The check-in comment was: "This adds a callback to the LLVMTargetMachine that lets target indicate that they do not pass the machine verifier checks in all cases yet. This is intended to be a temporary measure while the targets are fixed allowing us to enable the machine verifier by default with EXPENSIVE_CHECKS enabled!" I added this flag to Nyuzi to be consistent (although I saw no problems with it off). As the other backends get fixed (whatever that involves), I will look to modify Nyuzi accordingly. --- lib/Target/Nyuzi/NyuziTargetMachine.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/Target/Nyuzi/NyuziTargetMachine.h b/lib/Target/Nyuzi/NyuziTargetMachine.h index 89cb29738f..1d4bc2c2a6 100644 --- a/lib/Target/Nyuzi/NyuziTargetMachine.h +++ b/lib/Target/Nyuzi/NyuziTargetMachine.h @@ -38,6 +38,10 @@ class NyuziTargetMachine : public LLVMTargetMachine { TargetLoweringObjectFile *getObjFileLowering() const override { return TLOF.get(); } + + bool isMachineVerifierClean() const override { + return false; + } }; } // end namespace llvm