convert a bunch of callers from DataLayout::getIndexedOffset() to GEP::accumulateCons...
authorNuno Lopes <nunoplopes@sapo.pt>
Sun, 30 Dec 2012 16:25:48 +0000 (16:25 +0000)
committerNuno Lopes <nunoplopes@sapo.pt>
Sun, 30 Dec 2012 16:25:48 +0000 (16:25 +0000)
commit98281a20503896349bd152e2dfe87435d3a6aada
treef4a6df704e5d899d63979d2b5203e06443e9cd85
parent0d80c9c8c78279124bb0d7e275c2b634ca640fef
convert a bunch of callers from DataLayout::getIndexedOffset() to GEP::accumulateConstantOffset().
The later API is nicer than the former, and is correct regarding wrap-around offsets (if anyone cares).
There are a few more places left with duplicated code, which I'll remove soon.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@171259 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/MemoryBuiltins.cpp
lib/CodeGen/AsmPrinter/AsmPrinter.cpp
lib/ExecutionEngine/ExecutionEngine.cpp
lib/Target/NVPTX/NVPTXAsmPrinter.cpp
lib/Transforms/IPO/MergeFunctions.cpp
lib/Transforms/InstCombine/InstCombineCasts.cpp
lib/Transforms/InstCombine/InstructionCombining.cpp
lib/Transforms/Scalar/SROA.cpp