diff options
author | Tobias Grosser <tobias@grosser.es> | 2015-11-17 11:54:51 +0000 |
---|---|---|
committer | Tobias Grosser <tobias@grosser.es> | 2015-11-17 11:54:51 +0000 |
commit | b39c96aa1981871766d364f638f2442e2164b87d (patch) | |
tree | 10bef7fc7c22f00bc6b1f790e767cfed0851e1fb /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | 246b21f66aa454353427d100c208917f32687684 (diff) | |
download | bcm5719-llvm-b39c96aa1981871766d364f638f2442e2164b87d.tar.gz bcm5719-llvm-b39c96aa1981871766d364f638f2442e2164b87d.zip |
ScopInfo: Ensure unique names for parameter names coming from load instructions
In case the original parameter instruction does not have a name, but it comes
from a load instruction where the base pointer has a name we used the name of
the load instruction to give some more intuition of where the parameter came
from. To ensure this works also through GEPs which may have complex offsets,
we originally just dropped the offsets and _only_ used the base pointer name.
As this can result in multiple parameters to get the same name, we now prefix
the parameter ID to ensure parameter names are unique. This will make it easier
to understand debug output.
This change does not affect correctness, as parameter IDs (even of the same
name) can always be distinguished through the SCEV pointer stored inside them.
llvm-svn: 253330
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions