summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/PowerPC/PPCTargetMachine.cpp
diff options
context:
space:
mode:
authorRafael Auler <rafaelauler@gmail.com>2015-02-03 16:08:57 +0000
committerRafael Auler <rafaelauler@gmail.com>2015-02-03 16:08:57 +0000
commitee95c3b5c57f7b3e4fe369f543b14d2b677789f1 (patch)
treefdf645ab3567e69f856bda9277e2cdaa9979e2ef /llvm/lib/Target/PowerPC/PPCTargetMachine.cpp
parent0285fc869ddcdce44ebd301580cd3dd6797e0dc2 (diff)
downloadbcm5719-llvm-ee95c3b5c57f7b3e4fe369f543b14d2b677789f1.tar.gz
bcm5719-llvm-ee95c3b5c57f7b3e4fe369f543b14d2b677789f1.zip
Make ELFLinkingContext own LinkerScript buffers
Currently, no one owns script::Parser buffers, but yet ELFLinkingContext gets updated with StringRef pointers to data inside Parser buffers. Since this buffer is locally owned inside GnuLdDriver::evalLinkerScript(), as soon as this function finishes, all pointers in ELFLinkingContext that comes from linker scripts get invalid. The problem is that we need someone to own linker scripts data structures and, since ELFLinkingContext transports references to linker scripts data, we can simply make it also own all linker scripts data. Differential Revision: http://reviews.llvm.org/D7323 llvm-svn: 227975
Diffstat (limited to 'llvm/lib/Target/PowerPC/PPCTargetMachine.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud