mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-29 13:32:33 +00:00
Fix the linker. This bug was not fun to track down. grr
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1090 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
3b1e3f45c0
commit
d4f981d00f
@ -79,7 +79,7 @@ public:
|
|||||||
|
|
||||||
virtual Instruction *clone() const {
|
virtual Instruction *clone() const {
|
||||||
return new MallocInst(getType(),
|
return new MallocInst(getType(),
|
||||||
Operands.size() ? (Value*)Operands[1].get() : 0);
|
Operands.size() ? (Value*)Operands[0].get() : 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual const char *getOpcodeName() const { return "malloc"; }
|
virtual const char *getOpcodeName() const { return "malloc"; }
|
||||||
@ -106,7 +106,7 @@ public:
|
|||||||
|
|
||||||
virtual Instruction *clone() const {
|
virtual Instruction *clone() const {
|
||||||
return new AllocaInst(getType(),
|
return new AllocaInst(getType(),
|
||||||
Operands.size() ? (Value*)Operands[1].get() : 0);
|
Operands.size() ? (Value*)Operands[0].get() : 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual const char *getOpcodeName() const { return "alloca"; }
|
virtual const char *getOpcodeName() const { return "alloca"; }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user