r186557 - s/BuiltinLocation/ArtificialLocation/
Adrian Prantl
aprantl at apple.com
Wed Jul 17 18:36:04 PDT 2013
Author: adrian
Date: Wed Jul 17 20:36:04 2013
New Revision: 186557
URL: http://llvm.org/viewvc/llvm-project?rev=186557&view=rev
Log:
s/BuiltinLocation/ArtificialLocation/
Modified:
cfe/trunk/lib/CodeGen/CGBlocks.cpp
cfe/trunk/lib/CodeGen/CGDebugInfo.cpp
cfe/trunk/lib/CodeGen/CGDebugInfo.h
Modified: cfe/trunk/lib/CodeGen/CGBlocks.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGBlocks.cpp?rev=186557&r1=186556&r2=186557&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGBlocks.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGBlocks.cpp Wed Jul 17 20:36:04 2013
@@ -1315,7 +1315,7 @@ CodeGenFunction::GenerateCopyHelperFunct
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::GenerateDestroyHelperFu
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();
Modified: cfe/trunk/lib/CodeGen/CGDebugInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGDebugInfo.cpp?rev=186557&r1=186556&r2=186557&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGDebugInfo.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGDebugInfo.cpp Wed Jul 17 20:36:04 2013
@@ -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(CodeGen
}
}
-BuiltinLocation::~BuiltinLocation() {
+ArtificialLocation::~ArtificialLocation() {
if (DI) {
assert(Builder.getCurrentDebugLocation().getLine() == 0);
DI->CurLoc = SavedLoc;
Modified: cfe/trunk/lib/CodeGen/CGDebugInfo.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGDebugInfo.h?rev=186557&r1=186556&r2=186557&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGDebugInfo.h (original)
+++ cfe/trunk/lib/CodeGen/CGDebugInfo.h Wed Jul 17 20:36:04 2013
@@ -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();
};
More information about the cfe-commits
mailing list