mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-02-25 13:05:04 +00:00
[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:
parent
e7c91e3124
commit
426afd79da
@ -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";
|
||||
|
Loading…
x
Reference in New Issue
Block a user