mirror of
https://github.com/RPCSX/llvm.git
synced 2025-02-01 18:12:49 +00:00
Rename RecordLabel to RecordSourceLine because that's what it is doing.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@46628 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
ec3e5c8a39
commit
a647c92ec2
@ -1101,10 +1101,10 @@ public:
|
||||
return ID;
|
||||
}
|
||||
|
||||
/// RecordLabel - Records location information and associates it with a
|
||||
/// RecordSourceLine - Records location information and associates it with a
|
||||
/// label. Returns a unique label ID used to generate a label and
|
||||
/// provide correspondence to the source line list.
|
||||
unsigned RecordLabel(unsigned Line, unsigned Column, unsigned Source);
|
||||
unsigned RecordSourceLine(unsigned Line, unsigned Column, unsigned Source);
|
||||
|
||||
/// InvalidateLabel - Inhibit use of the specified label # from
|
||||
/// MachineModuleInfo, for example because the code was deleted.
|
||||
|
@ -1611,11 +1611,11 @@ MachineModuleInfo::getGlobalVariablesUsing(Module &M,
|
||||
return ::getGlobalVariablesUsing(M, RootName);
|
||||
}
|
||||
|
||||
/// RecordLabel - Records location information and associates it with a
|
||||
/// RecordSourceLine - Records location information and associates it with a
|
||||
/// debug label. Returns a unique label ID used to generate a label and
|
||||
/// provide correspondence to the source line list.
|
||||
unsigned MachineModuleInfo::RecordLabel(unsigned Line, unsigned Column,
|
||||
unsigned Source) {
|
||||
unsigned MachineModuleInfo::RecordSourceLine(unsigned Line, unsigned Column,
|
||||
unsigned Source) {
|
||||
unsigned ID = NextLabelID();
|
||||
Lines.push_back(SourceLineInfo(Line, Column, Source, ID));
|
||||
return ID;
|
||||
|
@ -1055,7 +1055,7 @@ SDOperand SelectionDAGLegalize::LegalizeOp(SDOperand Op) {
|
||||
} else {
|
||||
unsigned Line = cast<ConstantSDNode>(LineOp)->getValue();
|
||||
unsigned Col = cast<ConstantSDNode>(ColOp)->getValue();
|
||||
unsigned ID = MMI->RecordLabel(Line, Col, SrcFile);
|
||||
unsigned ID = MMI->RecordSourceLine(Line, Col, SrcFile);
|
||||
Ops.push_back(DAG.getConstant(ID, MVT::i32));
|
||||
Ops.push_back(DAG.getConstant(0, MVT::i32)); // a debug label
|
||||
Result = DAG.getNode(ISD::LABEL, MVT::Other, &Ops[0], Ops.size());
|
||||
|
Loading…
x
Reference in New Issue
Block a user