mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-22 10:33:23 +00:00
PHI nodes can never reach the asmprinter, assert and die instead of printing
out an illegal "PHINODE" instruction. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81495 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
9cef48eae9
commit
5f12c21320
@ -558,7 +558,8 @@ void AsmWriterEmitter::run(raw_ostream &O) {
|
|||||||
|
|
||||||
for (CodeGenTarget::inst_iterator I = Target.inst_begin(),
|
for (CodeGenTarget::inst_iterator I = Target.inst_begin(),
|
||||||
E = Target.inst_end(); I != E; ++I)
|
E = Target.inst_end(); I != E; ++I)
|
||||||
if (!I->second.AsmString.empty())
|
if (!I->second.AsmString.empty() &&
|
||||||
|
I->second.TheDef->getName() != "PHI")
|
||||||
Instructions.push_back(AsmWriterInst(I->second, AsmWriter));
|
Instructions.push_back(AsmWriterInst(I->second, AsmWriter));
|
||||||
|
|
||||||
// Get the instruction numbering.
|
// Get the instruction numbering.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user