[PATCH] D130402: Fix BOLT build errors when building with Bazel build file

Sriraman Tallam via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 2 11:23:58 PDT 2022


This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rG3e43d0cde719: This patch fixes these errors while building BOLT. (authored by tmsriram).
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D130402/new/

https://reviews.llvm.org/D130402

Files:
  bolt/include/bolt/Core/BinaryDomTree.h
  bolt/include/bolt/Passes/RegReAssign.h
  utils/bazel/llvm-project-overlay/bolt/BUILD.bazel


Index: utils/bazel/llvm-project-overlay/bolt/BUILD.bazel
===================================================================
--- utils/bazel/llvm-project-overlay/bolt/BUILD.bazel
+++ utils/bazel/llvm-project-overlay/bolt/BUILD.bazel
@@ -253,6 +253,7 @@
         "//llvm:MCParser",
         "//llvm:Object",
         "//llvm:Support",
+        "//llvm:ir_headers",
     ],
 )
 
Index: bolt/include/bolt/Passes/RegReAssign.h
===================================================================
--- bolt/include/bolt/Passes/RegReAssign.h
+++ 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"
 
Index: bolt/include/bolt/Core/BinaryDomTree.h
===================================================================
--- bolt/include/bolt/Core/BinaryDomTree.h
+++ bolt/include/bolt/Core/BinaryDomTree.h
@@ -14,12 +14,13 @@
 #ifndef BOLT_CORE_BINARY_DOMTREE_H
 #define BOLT_CORE_BINARY_DOMTREE_H
 
+#include "bolt/Core/BinaryBasicBlock.h"
+#include "llvm/IR/Dominators.h"
 #include "llvm/Support/GenericDomTreeConstruction.h"
 
 namespace llvm {
 namespace bolt {
 
-class BinaryBasicBlock;
 using BinaryDomTreeNode = DomTreeNodeBase<BinaryBasicBlock>;
 using BinaryDominatorTree = DomTreeBase<BinaryBasicBlock>;
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D130402.449357.patch
Type: text/x-patch
Size: 1405 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220802/d8a5382a/attachment.bin>


More information about the llvm-commits mailing list