InstructionNamer preserves everything.

llvm-svn: 58787
This commit is contained in:
Devang Patel 2008-11-06 01:00:16 +00:00
parent ec135e1f33
commit cea9dfa11f

View File

@ -25,6 +25,10 @@ namespace {
static char ID; // Pass identification, replacement for typeid
InstNamer() : FunctionPass(&ID) {}
void getAnalysisUsage(AnalysisUsage &Info) const {
Info.setPreservesAll();
}
bool runOnFunction(Function &F) {
for (Function::iterator BB = F.begin(), E = F.end(); BB != E; ++BB)
for (BasicBlock::iterator I = BB->begin(), E = BB->end(); I != E; ++I)