mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-04-06 09:44:39 +00:00
InstructionNamer preserves everything.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58787 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
20dd0460a1
commit
33e868ff43
@ -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…
x
Reference in New Issue
Block a user