Summary: Sometimes symbols are added to the symbol table multiple times during translation from LLVM to LLAIR. For example, this happens when a `llvm.dbg.declare` instruction is encountered that attaches a debug location to a symbol. Currently when this happens, the symbol name is regenerated unnecessarily. This is not economical, and since counters are used in some cases to avoid clashes, this can cause visible changes to names. This diff fixes this, and also makes the location update more robust by not relying on the location added last being the best. Reviewed By: jvillard Differential Revision: D26250542 fbshipit-source-id: 5d52ce193master
parent
5c07232ea3
commit
aaf0921d86
Loading…
Reference in new issue