[mlir] Adopt changes in mlir-opt to standalone example

MLIRContext was moved with commit 6bce7d8

Differential Revision: https://reviews.llvm.org/D79946
This commit is contained in:
Marius Brehler 2020-05-14 17:49:44 +00:00 committed by Mehdi Amini
parent e7c91e3124
commit 426afd79da

View File

@ -73,8 +73,8 @@ int main(int argc, char **argv) {
llvm::cl::ParseCommandLineOptions(argc, argv,
"MLIR modular optimizer driver\n");
mlir::MLIRContext context;
if (showDialects) {
mlir::MLIRContext context;
llvm::outs() << "Registered Dialects:\n";
for (mlir::Dialect *dialect : context.getRegisteredDialects()) {
llvm::outs() << dialect->getNamespace() << "\n";