mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-12 13:38:21 +00:00
Add an extra operand to LABEL nodes which distinguishes between debug, EH, or misc labels. This fixes the EH breakage. However I am not convinced this is *the* solution.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@46609 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -18,6 +18,7 @@
|
||||
#include "llvm/CodeGen/PseudoSourceValue.h"
|
||||
#include "llvm/CodeGen/SelectionDAGNodes.h"
|
||||
#include "llvm/Target/TargetMachine.h"
|
||||
#include "llvm/Target/TargetInstrInfo.h"
|
||||
#include "llvm/Target/TargetInstrDesc.h"
|
||||
#include "llvm/Target/MRegisterInfo.h"
|
||||
#include "llvm/Support/LeakDetector.h"
|
||||
@ -512,6 +513,12 @@ unsigned MachineInstr::getNumExplicitOperands() const {
|
||||
}
|
||||
|
||||
|
||||
/// isDebugLabel - Returns true if the MachineInstr represents a debug label.
|
||||
///
|
||||
bool MachineInstr::isDebugLabel() const {
|
||||
return getOpcode() == TargetInstrInfo::LABEL && getOperand(1).getImm() == 0;
|
||||
}
|
||||
|
||||
/// findRegisterUseOperandIdx() - Returns the MachineOperand that is a use of
|
||||
/// the specific register or -1 if it is not found. It further tightening
|
||||
/// the search criteria to a use that kills the register if isKill is true.
|
||||
|
Reference in New Issue
Block a user