LLVM's Value interface which is used in LLVM's DominatorTree analysis
and which changed in LLVM r198836.
The DominatorTree analysis is actually a generic graph analysis and
should be moved to LLVM's support library to clarify that Clang and
others are using it with arbitrary graphs. Further, it seems likely that
it should be using something other than printAsOperand, but this is
a simpler build fix. I'll clean this up later.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@198840
91177308-0d34-0410-b5e6-
96231b3b80d8
CFG *cfg;
};
-inline void WriteAsOperand(raw_ostream &OS, const CFGBlock *BB,
- bool t) {
- OS << "BB#" << BB->getBlockID();
-}
-
} // end namespace clang
//===-------------------------------------
#include "llvm/ADT/PointerIntPair.h"
#include "llvm/Support/Allocator.h"
#include "llvm/Support/Casting.h"
+#include "llvm/Support/raw_ostream.h"
#include <bitset>
#include <cassert>
#include <iterator>
void print(raw_ostream &OS, const CFG* cfg, const LangOptions &LO,
bool ShowColors) const;
void printTerminator(raw_ostream &OS, const LangOptions &LO) const;
+ void printAsOperand(raw_ostream &OS, bool /*PrintType*/) {
+ OS << "BB#" << getBlockID();
+ }
void addSuccessor(CFGBlock *Block, BumpVectorContext &C) {
if (Block)