From: Sriraman Tallam Date: Tue, 2 Aug 2022 18:21:36 +0000 (-0700) Subject: This patch fixes these errors while building BOLT. X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3e43d0cde7193599631799f54fa915efc141e4b0;p=platform%2Fupstream%2Fllvm.git This patch fixes these errors while building BOLT. Compiling llvm/llvm-project/bolt/include/bolt/Passes/RegReAssign.h failed: ...: error: invalid application of 'sizeof' to an incomplete type 'llvm::bolt::BinaryFunctionCallGraph' static_assert(sizeof(_Tp) >= 0, "cannot delete an incomplete type"); error: type 'llvm::bolt::BinaryBasicBlock *' cannot be used prior to '::' because it has no members using NodeRef = typename GraphType::UnknownGraphTypeError; BinaryDomTree.h:31:14: error: no template named 'DomTreeGraphTraitsBase' : public DomTreeGraphTraitsBase; using BinaryDominatorTree = DomTreeBase; diff --git a/bolt/include/bolt/Passes/RegReAssign.h b/bolt/include/bolt/Passes/RegReAssign.h index df01520..cd7bea6 100644 --- a/bolt/include/bolt/Passes/RegReAssign.h +++ b/bolt/include/bolt/Passes/RegReAssign.h @@ -9,6 +9,7 @@ #ifndef BOLT_PASSES_REGREASSIGN_H #define BOLT_PASSES_REGREASSIGN_H +#include "bolt/Passes/BinaryFunctionCallGraph.h" #include "bolt/Passes/BinaryPasses.h" #include "bolt/Passes/RegAnalysis.h" diff --git a/utils/bazel/llvm-project-overlay/bolt/BUILD.bazel b/utils/bazel/llvm-project-overlay/bolt/BUILD.bazel index 890ae7a..6c4f99b8 100644 --- a/utils/bazel/llvm-project-overlay/bolt/BUILD.bazel +++ b/utils/bazel/llvm-project-overlay/bolt/BUILD.bazel @@ -253,6 +253,7 @@ cc_library( "//llvm:MCParser", "//llvm:Object", "//llvm:Support", + "//llvm:ir_headers", ], )