]> granicus.if.org Git - clang/commitdiff
Rename EmitStopPoint in CGDebugInfo to EmitLocation. "stop points" don't
authorEric Christopher <echristo@apple.com>
Thu, 29 Sep 2011 00:00:41 +0000 (00:00 +0000)
committerEric Christopher <echristo@apple.com>
Thu, 29 Sep 2011 00:00:41 +0000 (00:00 +0000)
exist anymore.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@140739 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CGClass.cpp
lib/CodeGen/CGDebugInfo.cpp
lib/CodeGen/CGDebugInfo.h
lib/CodeGen/CGExpr.cpp
lib/CodeGen/CGStmt.cpp

index 17bd594280c150930f1612894a8c73548e53054f..66603acb2420a10c7f404e340082a05f5b884a94 100644 (file)
@@ -693,7 +693,7 @@ void CodeGenFunction::EmitConstructorBody(FunctionArgList &Args) {
   // delegation optimization.
   if (CtorType == Ctor_Complete && IsConstructorDelegationValid(Ctor)) {
     if (CGDebugInfo *DI = getDebugInfo()) 
-      DI->EmitStopPoint(Builder);
+      DI->EmitLocation(Builder);
     EmitDelegateCXXConstructorCall(Ctor, Ctor_Base, Args);
     return;
   }
index b8a5d0d83c182f0f592c6a49521363d3343c39b0..32e9d543b624011912a6e45fc0a5c95e4e3debe3 100644 (file)
@@ -1803,7 +1803,9 @@ void CGDebugInfo::UpdateLineDirectiveRegion(CGBuilderTy &Builder) {
   return;
 }
 
-void CGDebugInfo::EmitStopPoint(CGBuilderTy &Builder) {
+/// EmitLocation - Emit metadata to indicate a change in line/column
+/// information in the source file.
+void CGDebugInfo::EmitLocation(CGBuilderTy &Builder) {
   if (CurLoc.isInvalid() || CurLoc.isMacroID()) return;
 
   // Don't bother if things are the same as last time.
@@ -1847,7 +1849,7 @@ void CGDebugInfo::EmitRegionEnd(CGBuilderTy &Builder) {
   assert(!RegionStack.empty() && "Region stack mismatch, stack empty!");
 
   // Provide a region stop point.
-  EmitStopPoint(Builder);
+  EmitLocation(Builder);
 
   RegionStack.pop_back();
 }
index e59aed91a6a3d67dbed39ce834de348276bbd086..021838019e55dbd53914b39122ce4d0a832620b0 100644 (file)
@@ -162,9 +162,9 @@ public:
   /// invalid it is ignored.
   void setLocation(SourceLocation Loc);
 
-  /// EmitStopPoint - Emit a call to llvm.dbg.stoppoint to indicate a change of
-  /// source line.
-  void EmitStopPoint(CGBuilderTy &Builder);
+  /// EmitLocation - Emit metadata to indicate a change in line/column
+  /// information in the source file.
+  void EmitLocation(CGBuilderTy &Builder);
 
   /// EmitFunctionStart - Emit a call to llvm.dbg.function.start to indicate
   /// start of a new function.
index 5fe33ff1d3f18f31c5188c018ff6eb82bf84009c..1f5bb32dea1f11a9e8c9c91de268f463f1b79198 100644 (file)
@@ -2170,7 +2170,7 @@ RValue CodeGenFunction::EmitCallExpr(const CallExpr *E,
                                      ReturnValueSlot ReturnValue) {
   if (CGDebugInfo *DI = getDebugInfo()) {
     DI->setLocation(E->getLocStart());
-    DI->EmitStopPoint(Builder);
+    DI->EmitLocation(Builder);
   }
 
   // Builtins never have block type.
index e070cc312a993dd3556803dc9be9c1e66e98decf..1cdb660fa32386ce72d369f251ae88cd72f1caf9 100644 (file)
@@ -35,7 +35,7 @@ void CodeGenFunction::EmitStopPoint(const Stmt *S) {
       DI->setLocation(S->getLocEnd());
     else
       DI->setLocation(S->getLocStart());
-    DI->EmitStopPoint(Builder);
+    DI->EmitLocation(Builder);
   }
 }