LTO: Use the correct mangler function in LTOCodeGenerator::applyScopeRestrictions().
authorPeter Collingbourne <peter@pcc.me.uk>
Wed, 12 Oct 2016 20:12:19 +0000 (20:12 +0000)
committerPeter Collingbourne <peter@pcc.me.uk>
Wed, 12 Oct 2016 20:12:19 +0000 (20:12 +0000)
commit46aafc16e8b6d5ab9700780a9b03568bef31f708
tree16cf1053edb66682cb2ea29fb8fea9d3ec34c6bf
parent2f159a265a36cabc5a088bde50ac87bebaadcf8e
LTO: Use the correct mangler function in LTOCodeGenerator::applyScopeRestrictions().

We need to use the overload of Mangler::getNameWithPrefix that takes a
GlobalValue in order to mangle in the stdcall stack byte count for Windows
targets.

Differential Revision: https://reviews.llvm.org/D25529

llvm-svn: 284040
llvm/lib/LTO/LTOCodeGenerator.cpp
llvm/test/LTO/X86/stdcall.ll [new file with mode: 0644]