[Mlir-commits] [mlir] d8c3738 - [mlir][NFC] Add missing include guards to MlirOptMain.h

Mehdi Amini llvmlistbot at llvm.org
Tue Feb 2 10:26:25 PST 2021


Author: Vladislav Vinogradov
Date: 2021-02-02T18:26:09Z
New Revision: d8c373815d35df1b8544784ce172ade68fb01f8f

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

LOG: [mlir][NFC] Add missing include guards to MlirOptMain.h

Reviewed By: mehdi_amini

Differential Revision: https://reviews.llvm.org/D95533

Added: 
    

Modified: 
    mlir/include/mlir/Support/MlirOptMain.h

Removed: 
    


################################################################################
diff  --git a/mlir/include/mlir/Support/MlirOptMain.h b/mlir/include/mlir/Support/MlirOptMain.h
index da03baed2ae7..71d47317571e 100644
--- a/mlir/include/mlir/Support/MlirOptMain.h
+++ b/mlir/include/mlir/Support/MlirOptMain.h
@@ -10,6 +10,9 @@
 //
 //===----------------------------------------------------------------------===//
 
+#ifndef MLIR_SUPPORT_MLIROPTMAIN_H
+#define MLIR_SUPPORT_MLIROPTMAIN_H
+
 #include "mlir/Support/LogicalResult.h"
 #include "llvm/ADT/StringRef.h"
 
@@ -59,3 +62,5 @@ LogicalResult MlirOptMain(int argc, char **argv, llvm::StringRef toolName,
                           bool preloadDialectsInContext = true);
 
 } // end namespace mlir
+
+#endif // MLIR_SUPPORT_MLIROPTMAIN_H


        


More information about the Mlir-commits mailing list