mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-28 06:27:16 +00:00
InstructionNamer preserves everything.
llvm-svn: 58787
This commit is contained in:
parent
ec135e1f33
commit
cea9dfa11f
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user