mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-16 12:24:03 +00:00
Eliminate several more unnecessary intptr_t casts.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@64888 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -62,7 +62,7 @@ namespace llvm {
|
||||
namespace {
|
||||
struct CallGraphPrinter : public ModulePass {
|
||||
static char ID; // Pass ID, replacement for typeid
|
||||
CallGraphPrinter() : ModulePass((intptr_t)&ID) {}
|
||||
CallGraphPrinter() : ModulePass(&ID) {}
|
||||
|
||||
virtual bool runOnModule(Module &M) {
|
||||
WriteGraphToFile(std::cerr, "callgraph", &getAnalysis<CallGraph>());
|
||||
@ -91,7 +91,7 @@ namespace {
|
||||
class DomInfoPrinter : public FunctionPass {
|
||||
public:
|
||||
static char ID; // Pass identification, replacement for typeid
|
||||
DomInfoPrinter() : FunctionPass((intptr_t)&ID) {}
|
||||
DomInfoPrinter() : FunctionPass(&ID) {}
|
||||
|
||||
virtual void getAnalysisUsage(AnalysisUsage &AU) const {
|
||||
AU.setPreservesAll();
|
||||
|
Reference in New Issue
Block a user