diff options
| author | River Riddle <riverriddle@google.com> | 2019-07-02 15:00:38 -0700 |
|---|---|---|
| committer | Mehdi Amini <aminim@google.com> | 2019-07-02 16:43:36 -0700 |
| commit | d3f743252dd0946f2cfc63d9d68abcb53cbd85f5 (patch) | |
| tree | 024244a8c34fc30d06e7533ae1c46ddfeaca3371 /mlir/lib/Support | |
| parent | 516188bf1cb76d765afa40ef3ef3c970e092843d (diff) | |
| download | bcm5719-llvm-d3f743252dd0946f2cfc63d9d68abcb53cbd85f5.tar.gz bcm5719-llvm-d3f743252dd0946f2cfc63d9d68abcb53cbd85f5.zip | |
NFC: Move the Function/Module/Operation::verify methods out-of-line.
As Functions/Modules becomes operations, these methods will conflict with the 'verify' hook already on derived operation types.
PiperOrigin-RevId: 256246112
Diffstat (limited to 'mlir/lib/Support')
| -rw-r--r-- | mlir/lib/Support/TranslateClParser.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mlir/lib/Support/TranslateClParser.cpp b/mlir/lib/Support/TranslateClParser.cpp index dcb55d6a15f..89809b8bb47 100644 --- a/mlir/lib/Support/TranslateClParser.cpp +++ b/mlir/lib/Support/TranslateClParser.cpp @@ -21,6 +21,7 @@ #include "mlir/Support/TranslateClParser.h" +#include "mlir/Analysis/Verifier.h" #include "mlir/IR/MLIRContext.h" #include "mlir/IR/Module.h" #include "mlir/Parser.h" @@ -39,7 +40,7 @@ static llvm::SmallVector<TranslateFunction, 16> wrapperStorage; static LogicalResult printMLIROutput(Module module, llvm::StringRef outputFilename) { - if (failed(module.verify())) + if (failed(verify(module))) return failure(); auto file = openOutputFile(outputFilename); if (!file) |

