Skip to content

Commit

Permalink
Override isMachineVerifierClean and make it return false
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
jbush001 committed Jun 26, 2017
1 parent 5b45d86 commit 2098fd3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/Target/Nyuzi/NyuziTargetMachine.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ class NyuziTargetMachine : public LLVMTargetMachine {
TargetLoweringObjectFile *getObjFileLowering() const override {
return TLOF.get();
}

bool isMachineVerifierClean() const override {
return false;
}
};

} // end namespace llvm
Expand Down

0 comments on commit 2098fd3

Please sign in to comment.