mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-07-23 16:30:00 +00:00
Do not pass a copy of the value map, pass a reference to it.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@109852 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
bcc2393369
commit
80a098583b
@ -199,7 +199,7 @@ static Constant *GetTorInit(std::vector<std::pair<Function*, int> > &TorList) {
|
||||
/// static ctors/dtors, we need to add an llvm.global_[cd]tors global to M2, and
|
||||
/// prune appropriate entries out of M1s list.
|
||||
static void SplitStaticCtorDtor(const char *GlobalName, Module *M1, Module *M2,
|
||||
ValueMap<const Value*, Value*> VMap) {
|
||||
ValueMap<const Value*, Value*> &VMap) {
|
||||
GlobalVariable *GV = M1->getNamedGlobal(GlobalName);
|
||||
if (!GV || GV->isDeclaration() || GV->hasLocalLinkage() ||
|
||||
!GV->use_empty()) return;
|
||||
|
Loading…
Reference in New Issue
Block a user