summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/AsmPrinter/AddressPool.cpp
diff options
context:
space:
mode:
authorSiddharth Bhat <siddu.druid@gmail.com>2017-08-17 20:26:38 +0000
committerSiddharth Bhat <siddu.druid@gmail.com>2017-08-17 20:26:38 +0000
commita2c4112791ba99f3fc38dfbce6d47dc1ccac2a5a (patch)
tree4795257198d00c287907329641ec1c01353b4391 /llvm/lib/CodeGen/AsmPrinter/AddressPool.cpp
parent197bba0028d5c8e8863fc1d4de04be8dd23f53db (diff)
downloadbcm5719-llvm-a2c4112791ba99f3fc38dfbce6d47dc1ccac2a5a.tar.gz
bcm5719-llvm-a2c4112791ba99f3fc38dfbce6d47dc1ccac2a5a.zip
[ManagedMemoryRewrite] Rewrite malloc, free correctly inside `Constant`s.
Reuse the machinery built for replacing global arrays to replace malloc/free as well. Example replacement that was missed earlier: ``` call void \ bitcast (void (i8*)* @free to void (%custom_type*)*) (%custom_type* %13) ``` - Since the `bitcast` is a `ConstantExpr`, `replaceAllUsesWith` would miss this. We don't miss this anymore. Differential Revision: https://reviews.llvm.org/D36825 llvm-svn: 311121
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/AddressPool.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud