mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-05 12:31:33 +00:00
fix some problems with ID definitions, which will hopefully fix the build bots.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@84399 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
b839c5577d
commit
28717a8a60
@ -78,11 +78,9 @@ struct DOTGraphTraits<PostDominatorTree*>
|
||||
namespace {
|
||||
template <class Analysis, bool OnlyBBS>
|
||||
struct GenericGraphViewer : public FunctionPass {
|
||||
|
||||
static char ID;
|
||||
std::string Name;
|
||||
|
||||
GenericGraphViewer(std::string GraphName) : FunctionPass(&ID) {
|
||||
GenericGraphViewer(std::string GraphName, const void *ID) : FunctionPass(ID) {
|
||||
Name = GraphName;
|
||||
}
|
||||
|
||||
@ -104,27 +102,27 @@ struct GenericGraphViewer : public FunctionPass {
|
||||
struct DomViewer
|
||||
: public GenericGraphViewer<DominatorTree, false> {
|
||||
static char ID;
|
||||
DomViewer() : GenericGraphViewer<DominatorTree, false>("dom"){}
|
||||
DomViewer() : GenericGraphViewer<DominatorTree, false>("dom", &ID){}
|
||||
};
|
||||
|
||||
struct DomOnlyViewer
|
||||
: public GenericGraphViewer<DominatorTree, true> {
|
||||
static char ID;
|
||||
DomOnlyViewer() : GenericGraphViewer<DominatorTree, true>("domonly"){}
|
||||
DomOnlyViewer() : GenericGraphViewer<DominatorTree, true>("domonly", &ID){}
|
||||
};
|
||||
|
||||
struct PostDomViewer
|
||||
: public GenericGraphViewer<PostDominatorTree, false> {
|
||||
static char ID;
|
||||
PostDomViewer() :
|
||||
GenericGraphViewer<PostDominatorTree, false>("postdom"){}
|
||||
GenericGraphViewer<PostDominatorTree, false>("postdom", &ID){}
|
||||
};
|
||||
|
||||
struct PostDomOnlyViewer
|
||||
: public GenericGraphViewer<PostDominatorTree, true> {
|
||||
static char ID;
|
||||
PostDomOnlyViewer() :
|
||||
GenericGraphViewer<PostDominatorTree, true>("postdomonly"){}
|
||||
GenericGraphViewer<PostDominatorTree, true>("postdomonly", &ID){}
|
||||
};
|
||||
} // end anonymous namespace
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user