//
// The LLVM Compiler Infrastructure
//
-// This file was developed by the LLVM research group and is distributed under
-// the University of Illinois Open Source License. See LICENSE.TXT for details.
+// This file is distributed under the University of Illinois Open Source
+// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
//
/// crashes on any call instructions.
class CrashOnCalls : public BasicBlockPass {
public:
- static const int ID; // Pass ID, replacement for typeid
- CrashOnCalls() : BasicBlockPass((intptr_t)&ID) {}
+ static char ID; // Pass ID, replacement for typeid
+ CrashOnCalls() : BasicBlockPass(&ID) {}
private:
virtual void getAnalysisUsage(AnalysisUsage &AU) const {
AU.setPreservesAll();
}
};
- const int CrashOnCalls::ID = 0;
+ char CrashOnCalls::ID = 0;
RegisterPass<CrashOnCalls>
X("bugpoint-crashcalls",
"BugPoint Test Pass - Intentionally crash on CallInsts");
/// deletes some call instructions, "misoptimizing" the program.
class DeleteCalls : public BasicBlockPass {
public:
- static const int ID; // Pass ID, replacement for typeid
- DeleteCalls() : BasicBlockPass((intptr_t)&ID) {}
+ static char ID; // Pass ID, replacement for typeid
+ DeleteCalls() : BasicBlockPass(&ID) {}
private:
bool runOnBasicBlock(BasicBlock &BB) {
for (BasicBlock::iterator I = BB.begin(), E = BB.end(); I != E; ++I)
}
};
- const int DeleteCalls::ID = 0;
+ char DeleteCalls::ID = 0;
RegisterPass<DeleteCalls>
Y("bugpoint-deletecalls",
"BugPoint Test Pass - Intentionally 'misoptimize' CallInsts");