From b75016d29901ece3509f433c0adb6e9263562597 Mon Sep 17 00:00:00 2001 From: Adrian Prantl Date: Thu, 18 Jul 2013 01:36:04 +0000 Subject: [PATCH] s/BuiltinLocation/ArtificialLocation/ llvm-svn: 186557 --- clang/lib/CodeGen/CGBlocks.cpp | 4 ++-- clang/lib/CodeGen/CGDebugInfo.cpp | 4 ++-- clang/lib/CodeGen/CGDebugInfo.h | 12 ++++++------ 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/clang/lib/CodeGen/CGBlocks.cpp b/clang/lib/CodeGen/CGBlocks.cpp index bd97b25..ec4af58 100644 --- a/clang/lib/CodeGen/CGBlocks.cpp +++ b/clang/lib/CodeGen/CGBlocks.cpp @@ -1315,7 +1315,7 @@ CodeGenFunction::GenerateCopyHelperFunction(const CGBlockInfo &blockInfo) { false); StartFunction(FD, C.VoidTy, Fn, FI, args, SourceLocation()); // Don't emit any line table entries for the body of this function. - BuiltinLocation BL(*this, Builder); + ArtificialLocation AL(*this, Builder); llvm::Type *structPtrTy = blockInfo.StructureType->getPointerTo(); @@ -1490,7 +1490,7 @@ CodeGenFunction::GenerateDestroyHelperFunction(const CGBlockInfo &blockInfo) { false, false); StartFunction(FD, C.VoidTy, Fn, FI, args, SourceLocation()); // Don't emit any line table entries for the body of this function. - BuiltinLocation BL(*this, Builder); + ArtificialLocation AL(*this, Builder); llvm::Type *structPtrTy = blockInfo.StructureType->getPointerTo(); diff --git a/clang/lib/CodeGen/CGDebugInfo.cpp b/clang/lib/CodeGen/CGDebugInfo.cpp index 5e5caf3..b6cf2f9 100644 --- a/clang/lib/CodeGen/CGDebugInfo.cpp +++ b/clang/lib/CodeGen/CGDebugInfo.cpp @@ -68,7 +68,7 @@ NoLocation::~NoLocation() { } } -BuiltinLocation::BuiltinLocation(CodeGenFunction &CGF, CGBuilderTy &B) +ArtificialLocation::ArtificialLocation(CodeGenFunction &CGF, CGBuilderTy &B) : DI(CGF.getDebugInfo()), Builder(B) { if (DI) { SavedLoc = DI->getLocation(); @@ -83,7 +83,7 @@ BuiltinLocation::BuiltinLocation(CodeGenFunction &CGF, CGBuilderTy &B) } } -BuiltinLocation::~BuiltinLocation() { +ArtificialLocation::~ArtificialLocation() { if (DI) { assert(Builder.getCurrentDebugLocation().getLine() == 0); DI->CurLoc = SavedLoc; diff --git a/clang/lib/CodeGen/CGDebugInfo.h b/clang/lib/CodeGen/CGDebugInfo.h index 3b88b11..6eeb911 100644 --- a/clang/lib/CodeGen/CGDebugInfo.h +++ b/clang/lib/CodeGen/CGDebugInfo.h @@ -48,7 +48,7 @@ namespace CodeGen { /// the backend. class CGDebugInfo { friend class NoLocation; - friend class BuiltinLocation; + friend class ArtificialLocation; CodeGenModule &CGM; const CodeGenOptions::DebugInfoKind DebugKind; llvm::DIBuilder DBuilder; @@ -403,8 +403,8 @@ public: ~NoLocation(); }; -/// BuiltinLocation - An RAII object that temporarily switches to an -/// artificial debug location that has a valid scope, but no line +/// ArtificialLocation - An RAII object that temporarily switches to +/// an artificial debug location that has a valid scope, but no line /// information. This is useful when emitting compiler-generated /// helper functions that have no source location associated with /// them. @@ -412,14 +412,14 @@ public: /// This is necessary because pasing an empty SourceLocation to /// CGDebugInfo::setLocation() will result in the last valid location /// being reused. -class BuiltinLocation { +class ArtificialLocation { SourceLocation SavedLoc; CGDebugInfo *DI; CGBuilderTy &Builder; public: - BuiltinLocation(CodeGenFunction &CGF, CGBuilderTy &B); + ArtificialLocation(CodeGenFunction &CGF, CGBuilderTy &B); /// ~BuildinLocation - Autorestore everything back to normal. - ~BuiltinLocation(); + ~ArtificialLocation(); }; -- 2.7.4