mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-25 13:24:46 +00:00
Make LABEL a builtin opcode.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33537 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -1980,7 +1980,7 @@ SelectionDAGLowering::visitIntrinsicCall(CallInst &I, unsigned Intrinsic) {
|
||||
DbgRegionStartInst &RSI = cast<DbgRegionStartInst>(I);
|
||||
if (DebugInfo && RSI.getContext() && DebugInfo->Verify(RSI.getContext())) {
|
||||
unsigned LabelID = DebugInfo->RecordRegionStart(RSI.getContext());
|
||||
DAG.setRoot(DAG.getNode(ISD::DEBUG_LABEL, MVT::Other, getRoot(),
|
||||
DAG.setRoot(DAG.getNode(ISD::LABEL, MVT::Other, getRoot(),
|
||||
DAG.getConstant(LabelID, MVT::i32)));
|
||||
}
|
||||
|
||||
@@ -1991,7 +1991,7 @@ SelectionDAGLowering::visitIntrinsicCall(CallInst &I, unsigned Intrinsic) {
|
||||
DbgRegionEndInst &REI = cast<DbgRegionEndInst>(I);
|
||||
if (DebugInfo && REI.getContext() && DebugInfo->Verify(REI.getContext())) {
|
||||
unsigned LabelID = DebugInfo->RecordRegionEnd(REI.getContext());
|
||||
DAG.setRoot(DAG.getNode(ISD::DEBUG_LABEL, MVT::Other,
|
||||
DAG.setRoot(DAG.getNode(ISD::LABEL, MVT::Other,
|
||||
getRoot(), DAG.getConstant(LabelID, MVT::i32)));
|
||||
}
|
||||
|
||||
@@ -2003,7 +2003,7 @@ SelectionDAGLowering::visitIntrinsicCall(CallInst &I, unsigned Intrinsic) {
|
||||
if (DebugInfo && FSI.getSubprogram() &&
|
||||
DebugInfo->Verify(FSI.getSubprogram())) {
|
||||
unsigned LabelID = DebugInfo->RecordRegionStart(FSI.getSubprogram());
|
||||
DAG.setRoot(DAG.getNode(ISD::DEBUG_LABEL, MVT::Other,
|
||||
DAG.setRoot(DAG.getNode(ISD::LABEL, MVT::Other,
|
||||
getRoot(), DAG.getConstant(LabelID, MVT::i32)));
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user