mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 20:32:21 +00:00
Fix the build of the gold plugin.
I did the previous patch on OS X and didn't noticed the issue. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@221070 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
ed297abb0a
commit
fc095209b8
@ -473,7 +473,6 @@ static GlobalObject *makeInternalReplacement(GlobalObject *GO) {
|
|||||||
if (auto *F = dyn_cast<Function>(GO)) {
|
if (auto *F = dyn_cast<Function>(GO)) {
|
||||||
if (F->materialize())
|
if (F->materialize())
|
||||||
message(LDPL_FATAL, "LLVM gold plugin has failed to read a function");
|
message(LDPL_FATAL, "LLVM gold plugin has failed to read a function");
|
||||||
}
|
|
||||||
|
|
||||||
auto *NewF = Function::Create(F->getFunctionType(), F->getLinkage(),
|
auto *NewF = Function::Create(F->getFunctionType(), F->getLinkage(),
|
||||||
F->getName(), M);
|
F->getName(), M);
|
||||||
|
Loading…
Reference in New Issue
Block a user