diff options
| author | Adrian Prantl <aprantl@apple.com> | 2015-02-03 20:00:54 +0000 |
|---|---|---|
| committer | Adrian Prantl <aprantl@apple.com> | 2015-02-03 20:00:54 +0000 |
| commit | 95b24e9b59f7d5f6b29736dd6b7db9b032ce5701 (patch) | |
| tree | d98996b548857342fa41cb1406d10e748acca83a /clang/lib/CodeGen/CGDebugInfo.cpp | |
| parent | 6c5e36ae3be87fefcec9177eae3aacd115905332 (diff) | |
| download | bcm5719-llvm-95b24e9b59f7d5f6b29736dd6b7db9b032ce5701.tar.gz bcm5719-llvm-95b24e9b59f7d5f6b29736dd6b7db9b032ce5701.zip | |
Address review feedback for r228003.
- use named constructors
- get rid of MarkAsPrologue
llvm-svn: 228021
Diffstat (limited to 'clang/lib/CodeGen/CGDebugInfo.cpp')
| -rw-r--r-- | clang/lib/CodeGen/CGDebugInfo.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/clang/lib/CodeGen/CGDebugInfo.cpp b/clang/lib/CodeGen/CGDebugInfo.cpp index 3fb839369db..de424ba1bb4 100644 --- a/clang/lib/CodeGen/CGDebugInfo.cpp +++ b/clang/lib/CodeGen/CGDebugInfo.cpp @@ -60,18 +60,18 @@ ApplyDebugLocation::ApplyDebugLocation(CodeGenFunction &CGF, } ApplyDebugLocation::ApplyDebugLocation(CodeGenFunction &CGF, - bool MarkAsPrologue, + bool DefaultToEmpty, SourceLocation TemporaryLocation) : CGF(CGF) { - init(TemporaryLocation, MarkAsPrologue); + init(TemporaryLocation, DefaultToEmpty); } void ApplyDebugLocation::init(SourceLocation TemporaryLocation, - bool MarkAsPrologue) { + bool DefaultToEmpty) { if (auto *DI = CGF.getDebugInfo()) { OriginalLocation = CGF.Builder.getCurrentDebugLocation(); if (TemporaryLocation.isInvalid()) { - if (MarkAsPrologue) + if (DefaultToEmpty) CGF.Builder.SetCurrentDebugLocation(llvm::DebugLoc()); else { // Construct a location that has a valid scope, but no line info. |

