[Mlir-commits] [mlir] ef8062e - [mlir][Target][Cpp] Fix include.

Oleg Shyshkov llvmlistbot at llvm.org
Thu Mar 14 05:23:52 PDT 2024


Author: Oleg Shyshkov
Date: 2024-03-14T13:23:30+01:00
New Revision: ef8062e35b3aae0e9d8bdee6534511a7b9eb49d0

URL: https://github.com/llvm/llvm-project/commit/ef8062e35b3aae0e9d8bdee6534511a7b9eb49d0
DIFF: https://github.com/llvm/llvm-project/commit/ef8062e35b3aae0e9d8bdee6534511a7b9eb49d0.diff

LOG: [mlir][Target][Cpp] Fix include.

mlir/include/mlir/Target/Cpp/CppEmitter.h:27:45: error: unknown type name 'raw_ostream'; did you mean 'llvm::raw_ostream'?
   27 | LogicalResult translateToCpp(Operation *op, raw_ostream &os,
      |                                             ^~~~~~~~~~~
      |                                             llvm::raw_ostream

Added: 
    

Modified: 
    mlir/include/mlir/Target/Cpp/CppEmitter.h

Removed: 
    


################################################################################
diff  --git a/mlir/include/mlir/Target/Cpp/CppEmitter.h b/mlir/include/mlir/Target/Cpp/CppEmitter.h
index 07a17a70d17cd0..d3c081061faa03 100644
--- a/mlir/include/mlir/Target/Cpp/CppEmitter.h
+++ b/mlir/include/mlir/Target/Cpp/CppEmitter.h
@@ -13,7 +13,7 @@
 #ifndef MLIR_TARGET_CPP_CPPEMITTER_H
 #define MLIR_TARGET_CPP_CPPEMITTER_H
 
-#include "llvm/Support/raw_ostream.h"
+#include "mlir/Support/LLVM.h"
 
 namespace mlir {
 struct LogicalResult;


        


More information about the Mlir-commits mailing list