Rename RecordLabel to RecordSourceLine because that's what it is doing.
authorEvan Cheng <evan.cheng@apple.com>
Fri, 1 Feb 2008 02:05:57 +0000 (02:05 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Fri, 1 Feb 2008 02:05:57 +0000 (02:05 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@46628 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/CodeGen/MachineModuleInfo.h
lib/CodeGen/MachineModuleInfo.cpp
lib/CodeGen/SelectionDAG/LegalizeDAG.cpp

index 71ec90a9f2e0f10e4b42d8096b7c15b636059e65..ee94e51a2baff3272bba00dcb6798d7eb87fea52 100644 (file)
@@ -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.
index 12680a0e9c1023ea5d2f43785e5dc7d046fb69ee..5edeefbfaec357fd5ef3ba6eb79c791156af0f0c 100644 (file)
@@ -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;
index 55634c91d051da89342848ff21649144b0ce6e16..fc726e4c41ad1274ee1238e3a47e06d00b3f5891 100644 (file)
@@ -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());