commit | 5d0392c6b370758750b397e254a6c6f028479969 | [log] [tgz] |
---|---|---|
author | Duncan Sands <baldrick@free.fr> | Wed Oct 01 15:25:41 2008 +0000 |
committer | Duncan Sands <baldrick@free.fr> | Wed Oct 01 15:25:41 2008 +0000 |
tree | e20efed1bfb1a39e5a9854393af376de2006eb48 | |
parent | 38ac062c2f4de93cd4351693f084f0c4474be02c [diff] |
Factorize code: remove variants of "strip off pointer bitcasts and GEP's", and centralize the logic in Value::getUnderlyingObject. The difference with stripPointerCasts is that stripPointerCasts only strips GEPs if all indices are zero, while getUnderlyingObject strips GEPs no matter what the indices are. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56922 91177308-0d34-0410-b5e6-96231b3b80d8