Skip to content

Commit 9620bed

Browse files
committed
[di] Rename: DIMemoryUseCollector{Ownership,}.{cpp,h}
This was done early on during the split of predictable mem opts from DI. This has been done for a long time, so eliminate the "Ownership" basename suffix.
1 parent 0d4a585 commit 9620bed

File tree

5 files changed

+9
-21
lines changed

5 files changed

+9
-21
lines changed

lib/SILOptimizer/Mandatory/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ silopt_register_sources(
44
AddressLowering.cpp
55
ConstantPropagation.cpp
66
DefiniteInitialization.cpp
7-
DIMemoryUseCollectorOwnership.cpp
7+
DIMemoryUseCollector.cpp
88
DataflowDiagnostics.cpp
99
DiagnoseInfiniteRecursion.cpp
1010
DiagnoseStaticExclusivity.cpp

lib/SILOptimizer/Mandatory/DIMemoryUseCollectorOwnership.cpp renamed to lib/SILOptimizer/Mandatory/DIMemoryUseCollector.cpp

+3-7
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
//===--- DIMemoryUseCollectorOwnership.cpp - Memory use analysis for DI ---===//
1+
//===--- DIMemoryUseCollector.cpp -----------------------------------------===//
22
//
33
// This source file is part of the Swift.org open source project
44
//
5-
// Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors
5+
// Copyright (c) 2014 - 2018 Apple Inc. and the Swift project authors
66
// Licensed under Apache License v2.0 with Runtime Library Exception
77
//
88
// See https://swift.org/LICENSE.txt for license information
@@ -11,7 +11,7 @@
1111
//===----------------------------------------------------------------------===//
1212

1313
#define DEBUG_TYPE "definite-init"
14-
#include "DIMemoryUseCollectorOwnership.h"
14+
#include "DIMemoryUseCollector.h"
1515
#include "swift/AST/Expr.h"
1616
#include "swift/SIL/ApplySite.h"
1717
#include "swift/SIL/InstructionUtils.h"
@@ -21,10 +21,6 @@
2121
#include "llvm/Support/Debug.h"
2222
#include "llvm/Support/SaveAndRestore.h"
2323

24-
#ifdef SWIFT_SILOPTIMIZER_MANDATORY_DIMEMORYUSECOLLECTOR_H
25-
#error "Included non ownership header?!"
26-
#endif
27-
2824
using namespace swift;
2925
using namespace ownership;
3026

lib/SILOptimizer/Mandatory/DIMemoryUseCollectorOwnership.h renamed to lib/SILOptimizer/Mandatory/DIMemoryUseCollector.h

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
//===--- DIMemoryUseCollectorOwnership.h - Mem. use info for DI -*- C++ -*-===//
1+
//===--- DIMemoryUseCollector.h -------------------------------------------===//
22
//
33
// This source file is part of the Swift.org open source project
44
//
5-
// Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors
5+
// Copyright (c) 2014 - 2018 Apple Inc. and the Swift project authors
66
// Licensed under Apache License v2.0 with Runtime Library Exception
77
//
88
// See https://swift.org/LICENSE.txt for license information
@@ -17,8 +17,8 @@
1717
//
1818
//===----------------------------------------------------------------------===//
1919

20-
#ifndef SWIFT_SILOPTIMIZER_PASSMANAGER_DIMEMORYUSECOLLECTOROWNERSHIP_H
21-
#define SWIFT_SILOPTIMIZER_PASSMANAGER_DIMEMORYUSECOLLECTOROWNERSHIP_H
20+
#ifndef SWIFT_SILOPTIMIZER_PASSMANAGER_DIMEMORYUSECOLLECTOR_H
21+
#define SWIFT_SILOPTIMIZER_PASSMANAGER_DIMEMORYUSECOLLECTOR_H
2222

2323
#include "swift/Basic/LLVM.h"
2424
#include "swift/SIL/SILInstruction.h"

lib/SILOptimizer/Mandatory/DefiniteInitialization.cpp

+1-5
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
//===----------------------------------------------------------------------===//
1212

1313
#define DEBUG_TYPE "definite-init"
14-
#include "DIMemoryUseCollectorOwnership.h"
14+
#include "DIMemoryUseCollector.h"
1515
#include "MandatoryOptUtils.h"
1616
#include "swift/AST/DiagnosticEngine.h"
1717
#include "swift/AST/DiagnosticsSIL.h"
@@ -33,10 +33,6 @@
3333
#include "llvm/Support/Compiler.h"
3434
#include "llvm/Support/Debug.h"
3535

36-
#ifdef SWIFT_SILOPTIMIZER_PASSMANAGER_DIMEMORYUSECOLLECTOR_H
37-
#error "Included non ownership header?!"
38-
#endif
39-
4036
using namespace swift;
4137
using namespace ownership;
4238

lib/SILOptimizer/Mandatory/PMOMemoryUseCollector.cpp

-4
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,6 @@
2020
#include "llvm/Support/Debug.h"
2121
#include "llvm/Support/SaveAndRestore.h"
2222

23-
#ifdef SWIFT_SILOPTIMIZER_PASSMANAGER_PMOMEMORYUSECOLLECTOROWNERSHIP_H
24-
#error "Included ownership header?!"
25-
#endif
26-
2723
using namespace swift;
2824

2925
//===----------------------------------------------------------------------===//

0 commit comments

Comments
 (0)