This repository has been archived by the owner on Apr 23, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
gold plugin: Remap function arguments when creating a replacement fun…
…ction. When creating an internal function replacement for use in an alias we were not remapping the argument uses in the instructions to point to the new arguments. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@219177 91177308-0d34-0410-b5e6-96231b3b80d8
- Loading branch information
Showing
3 changed files
with
32 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,20 @@ | ||
$c2 = comdat any | ||
|
||
@v1 = weak_odr global i32 41, comdat $c2 | ||
define weak_odr i32 @f1() comdat $c2 { | ||
define weak_odr i32 @f1(i8* %this) comdat $c2 { | ||
bb20: | ||
store i8* %this, i8** null | ||
br label %bb21 | ||
bb21: | ||
ret i32 41 | ||
} | ||
|
||
@r21 = global i32* @v1 | ||
@r22 = global i32()* @f1 | ||
@r22 = global i32(i8*)* @f1 | ||
|
||
@a21 = alias i32* @v1 | ||
@a22 = alias bitcast (i32* @v1 to i16*) | ||
|
||
@a23 = alias i32()* @f1 | ||
@a24 = alias bitcast (i32()* @f1 to i16*) | ||
@a23 = alias i32(i8*)* @f1 | ||
@a24 = alias bitcast (i32(i8*)* @f1 to i16*) | ||
@a25 = alias i16* @a24 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters