[IRMover] Set Address Space for moved global values
authorTeresa Johnson <tejohnson@google.com>
Tue, 5 Nov 2019 22:00:58 +0000 (14:00 -0800)
committerTeresa Johnson <tejohnson@google.com>
Wed, 6 Nov 2019 00:32:48 +0000 (16:32 -0800)
commitb36e3a8bac3ee95a5a67ab0acb6ef2a2602226a7
tree8ed01fd3bbd81173898f3d07a7083f192674fa0a
parente0dd8f36ce49f47099e56e317207de5304a1ccbb
[IRMover] Set Address Space for moved global values

Summary:
Set Address Space when creating a new function (from another).

Fix PR41154.

Patch by Ehud Katz <ehudkatz@gmail.com>

Reviewers: tejohnson, chandlerc

Reviewed By: tejohnson

Subscribers: hiraditya, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D69361
llvm/lib/Linker/IRMover.cpp
llvm/test/Linker/addrspace.ll [new file with mode: 0644]