mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-03-24 07:35:04 +00:00
Remove unnecessary casts.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78664 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
d443ee6884
commit
1b2d0b8397
@ -71,7 +71,7 @@ namespace {
|
||||
static char ID;
|
||||
|
||||
/// Construct a PBQP register allocator.
|
||||
PBQPRegAlloc() : MachineFunctionPass((intptr_t)&ID) {}
|
||||
PBQPRegAlloc() : MachineFunctionPass(&ID) {}
|
||||
|
||||
/// Return the pass name.
|
||||
virtual const char* getPassName() const throw() {
|
||||
|
@ -64,7 +64,7 @@ STATISTIC(NumFunctionsMerged, "Number of functions merged");
|
||||
namespace {
|
||||
struct VISIBILITY_HIDDEN MergeFunctions : public ModulePass {
|
||||
static char ID; // Pass identification, replacement for typeid
|
||||
MergeFunctions() : ModulePass((intptr_t)&ID) {}
|
||||
MergeFunctions() : ModulePass(&ID) {}
|
||||
|
||||
bool runOnModule(Module &M);
|
||||
};
|
||||
|
@ -403,7 +403,7 @@ static RegisterPass<SSI> X("ssi", "Static Single Information Construction");
|
||||
namespace {
|
||||
struct VISIBILITY_HIDDEN SSIEverything : public FunctionPass {
|
||||
static char ID; // Pass identification, replacement for typeid
|
||||
SSIEverything() : FunctionPass((intptr_t)&ID) {}
|
||||
SSIEverything() : FunctionPass(&ID) {}
|
||||
|
||||
bool runOnFunction(Function &F);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user