From 263070ea2bb7a14f6067c95a958b82a1cb44b939 Mon Sep 17 00:00:00 2001 From: Evan Cheng Date: Fri, 1 Feb 2008 02:05:57 +0000 Subject: [PATCH] Rename RecordLabel to RecordSourceLine because that's what it is doing. llvm-svn: 46628 --- llvm/include/llvm/CodeGen/MachineModuleInfo.h | 4 ++-- llvm/lib/CodeGen/MachineModuleInfo.cpp | 6 +++--- llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/llvm/include/llvm/CodeGen/MachineModuleInfo.h b/llvm/include/llvm/CodeGen/MachineModuleInfo.h index 71ec90a9f2e0..ee94e51a2baf 100644 --- a/llvm/include/llvm/CodeGen/MachineModuleInfo.h +++ b/llvm/include/llvm/CodeGen/MachineModuleInfo.h @@ -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. diff --git a/llvm/lib/CodeGen/MachineModuleInfo.cpp b/llvm/lib/CodeGen/MachineModuleInfo.cpp index 12680a0e9c10..5edeefbfaec3 100644 --- a/llvm/lib/CodeGen/MachineModuleInfo.cpp +++ b/llvm/lib/CodeGen/MachineModuleInfo.cpp @@ -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; diff --git a/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp index 55634c91d051..fc726e4c41ad 100644 --- a/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp @@ -1055,7 +1055,7 @@ SDOperand SelectionDAGLegalize::LegalizeOp(SDOperand Op) { } else { unsigned Line = cast(LineOp)->getValue(); unsigned Col = cast(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());