Skip to content

Commit 2c24051

Browse files
committed
[CallSite removal] Rename CallSite.h to AbstractCallSite.h. NFC
The CallSite and ImmutableCallSite were removed in a previous commit. So rename the file to match the remaining class and the name of the cpp that implements it.
1 parent 73812f3 commit 2c24051

File tree

5 files changed

+9
-13
lines changed

5 files changed

+9
-13
lines changed

llvm/include/llvm/IR/CallSite.h renamed to llvm/include/llvm/IR/AbstractCallSite.h

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,27 @@
1-
//===- CallSite.h - Abstract Call & Invoke instrs ---------------*- C++ -*-===//
1+
//===- AbstractCallSite.h - Abstract call sites -----------------*- C++ -*-===//
22
//
33
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
44
// See https://llvm.org/LICENSE.txt for license information.
55
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
66
//
77
//===----------------------------------------------------------------------===//
88
//
9-
// This file defines the AbstractCallSite class, which is a is a wrapper that
9+
// This file defines the AbstractCallSite class, which is a is a wrapper that
1010
// allows treating direct, indirect, and callback calls the same.
1111
//
1212
//===----------------------------------------------------------------------===//
1313

14-
#ifndef LLVM_IR_CALLSITE_H
15-
#define LLVM_IR_CALLSITE_H
14+
#ifndef LLVM_IR_ABSTRACTCALLSITE_H
15+
#define LLVM_IR_ABSTRACTCALLSITE_H
1616

1717
#include "llvm/IR/Function.h"
1818
#include "llvm/IR/InstrTypes.h"
1919
#include "llvm/IR/Instruction.h"
20-
#include "llvm/IR/Instructions.h"
2120
#include "llvm/IR/Use.h"
2221
#include "llvm/IR/User.h"
2322
#include "llvm/IR/Value.h"
2423
#include "llvm/Support/Casting.h"
2524
#include <cassert>
26-
#include <cstdint>
27-
#include <iterator>
2825

2926
namespace llvm {
3027

@@ -220,4 +217,4 @@ class AbstractCallSite {
220217

221218
} // end namespace llvm
222219

223-
#endif // LLVM_IR_CALLSITE_H
220+
#endif // LLVM_IR_ABSTRACTCALLSITE_H

llvm/include/llvm/Transforms/IPO/Attributor.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@
111111
#include "llvm/Analysis/PostDominators.h"
112112
#include "llvm/Analysis/TargetLibraryInfo.h"
113113
#include "llvm/Analysis/TargetTransformInfo.h"
114-
#include "llvm/IR/CallSite.h"
114+
#include "llvm/IR/AbstractCallSite.h"
115115
#include "llvm/IR/ConstantRange.h"
116116
#include "llvm/IR/PassManager.h"
117117
#include "llvm/Support/Allocator.h"

llvm/include/llvm/module.modulemap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ module LLVM_intrinsic_gen {
234234
extern module LLVM_Extern_IR_Attributes_Gen "module.extern.modulemap"
235235
export *
236236
}
237-
module IR_CallSite { header "IR/CallSite.h" export * }
237+
module IR_AbstractCallSite { header "IR/AbstractCallSite.h" export * }
238238
module IR_ConstantFolder { header "IR/ConstantFolder.h" export * }
239239
module IR_GlobalVariable { header "IR/GlobalVariable.h" export * }
240240
module IR_NoFolder { header "IR/NoFolder.h" export * }

llvm/lib/IR/AbstractCallSite.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,8 @@
1414
//
1515
//===----------------------------------------------------------------------===//
1616

17+
#include "llvm/IR/AbstractCallSite.h"
1718
#include "llvm/ADT/Statistic.h"
18-
#include "llvm/ADT/StringSwitch.h"
19-
#include "llvm/IR/CallSite.h"
2019
#include "llvm/Support/Debug.h"
2120

2221
using namespace llvm;

llvm/lib/Transforms/IPO/IPConstantPropagation.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
#include "llvm/ADT/SmallVector.h"
1818
#include "llvm/ADT/Statistic.h"
1919
#include "llvm/Analysis/ValueTracking.h"
20-
#include "llvm/IR/CallSite.h"
20+
#include "llvm/IR/AbstractCallSite.h"
2121
#include "llvm/IR/Constants.h"
2222
#include "llvm/IR/Instructions.h"
2323
#include "llvm/IR/Module.h"

0 commit comments

Comments
 (0)