mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-15 21:24:00 +00:00
Tidy up several unbeseeming casts from pointer to intptr_t.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@55779 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -41,7 +41,7 @@ namespace {
|
||||
unsigned NumLoops;
|
||||
|
||||
explicit LoopExtractor(unsigned numLoops = ~0)
|
||||
: FunctionPass((intptr_t)&ID), NumLoops(numLoops) {}
|
||||
: FunctionPass(&ID), NumLoops(numLoops) {}
|
||||
|
||||
virtual bool runOnFunction(Function &F);
|
||||
|
||||
@ -167,11 +167,11 @@ namespace {
|
||||
public:
|
||||
static char ID; // Pass identification, replacement for typeid
|
||||
explicit BlockExtractorPass(const std::vector<BasicBlock*> &B)
|
||||
: ModulePass((intptr_t)&ID), BlocksToNotExtract(B) {
|
||||
: ModulePass(&ID), BlocksToNotExtract(B) {
|
||||
if (!BlockFile.empty())
|
||||
LoadFile(BlockFile.c_str());
|
||||
}
|
||||
BlockExtractorPass() : ModulePass((intptr_t)&ID) {}
|
||||
BlockExtractorPass() : ModulePass(&ID) {}
|
||||
|
||||
bool runOnModule(Module &M);
|
||||
};
|
||||
|
Reference in New Issue
Block a user