Give GetUnderlyingObject a TargetData, to keep it in sync
authorDan Gohman <gohman@apple.com>
Mon, 24 Jan 2011 18:53:32 +0000 (18:53 +0000)
committerDan Gohman <gohman@apple.com>
Mon, 24 Jan 2011 18:53:32 +0000 (18:53 +0000)
commitbd1801b5553c8be3960255a92738464e0010b6f6
tree838d8bf88ac48fbc8cc9df6be1cbc9df3067e2f7
parent0e3fae27a1634f51943d06588e32a550dae6a4b9
Give GetUnderlyingObject a TargetData, to keep it in sync
with BasicAA's DecomposeGEPExpression, which recently began
using a TargetData. This fixes PR8968, though the testcase
is awkward to reduce.

Also, update several off GetUnderlyingObject's users
which happen to have a TargetData handy to pass it in.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@124134 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Analysis/ValueTracking.h
lib/Analysis/BasicAliasAnalysis.cpp
lib/Analysis/ConstantFolding.cpp
lib/Analysis/Lint.cpp
lib/Analysis/MemoryDependenceAnalysis.cpp
lib/Analysis/ValueTracking.cpp
lib/Transforms/Scalar/DeadStoreElimination.cpp
lib/Transforms/Scalar/GVN.cpp
lib/Transforms/Scalar/ScalarReplAggregates.cpp