mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-22 13:29:44 +00:00
SymbolRewriter: prevent unnecessary rewrite
The rewrite for the pattern based rewrite is unnecessary if the existing name matches the pattern. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@227260 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
0f9950ed0c
commit
a999807716
@ -145,6 +145,9 @@ performOnModule(Module &M) {
|
||||
report_fatal_error("unable to transforn " + C.getName() + " in " +
|
||||
M.getModuleIdentifier() + ": " + Error);
|
||||
|
||||
if (C.getName() == Name)
|
||||
continue;
|
||||
|
||||
if (Value *V = (M.*Get)(Name))
|
||||
C.setValueName(V->getValueName());
|
||||
else
|
||||
|
Loading…
x
Reference in New Issue
Block a user