[llvm] 2c24051 - [CallSite removal] Rename CallSite.h to AbstractCallSite.h. NFC
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Fri Apr 24 22:16:32 PDT 2020
Author: Craig Topper
Date: 2020-04-24T22:12:25-07:00
New Revision: 2c24051bacd2d0eb7141fc4adb870281aec4e714
URL: https://github.com/llvm/llvm-project/commit/2c24051bacd2d0eb7141fc4adb870281aec4e714
DIFF: https://github.com/llvm/llvm-project/commit/2c24051bacd2d0eb7141fc4adb870281aec4e714.diff
LOG: [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.
Added:
llvm/include/llvm/IR/AbstractCallSite.h
Modified:
llvm/include/llvm/Transforms/IPO/Attributor.h
llvm/include/llvm/module.modulemap
llvm/lib/IR/AbstractCallSite.cpp
llvm/lib/Transforms/IPO/IPConstantPropagation.cpp
Removed:
llvm/include/llvm/IR/CallSite.h
################################################################################
diff --git a/llvm/include/llvm/IR/CallSite.h b/llvm/include/llvm/IR/AbstractCallSite.h
similarity index 97%
rename from llvm/include/llvm/IR/CallSite.h
rename to llvm/include/llvm/IR/AbstractCallSite.h
index 3c6c4c772ec9..c13521e157d0 100644
--- a/llvm/include/llvm/IR/CallSite.h
+++ b/llvm/include/llvm/IR/AbstractCallSite.h
@@ -1,4 +1,4 @@
-//===- CallSite.h - Abstract Call & Invoke instrs ---------------*- C++ -*-===//
+//===- AbstractCallSite.h - Abstract call sites -----------------*- C++ -*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
@@ -6,25 +6,22 @@
//
//===----------------------------------------------------------------------===//
//
-// This file defines the AbstractCallSite class, which is a is a wrapper that
+// This file defines the AbstractCallSite class, which is a is a wrapper that
// allows treating direct, indirect, and callback calls the same.
//
//===----------------------------------------------------------------------===//
-#ifndef LLVM_IR_CALLSITE_H
-#define LLVM_IR_CALLSITE_H
+#ifndef LLVM_IR_ABSTRACTCALLSITE_H
+#define LLVM_IR_ABSTRACTCALLSITE_H
#include "llvm/IR/Function.h"
#include "llvm/IR/InstrTypes.h"
#include "llvm/IR/Instruction.h"
-#include "llvm/IR/Instructions.h"
#include "llvm/IR/Use.h"
#include "llvm/IR/User.h"
#include "llvm/IR/Value.h"
#include "llvm/Support/Casting.h"
#include <cassert>
-#include <cstdint>
-#include <iterator>
namespace llvm {
@@ -220,4 +217,4 @@ class AbstractCallSite {
} // end namespace llvm
-#endif // LLVM_IR_CALLSITE_H
+#endif // LLVM_IR_ABSTRACTCALLSITE_H
diff --git a/llvm/include/llvm/Transforms/IPO/Attributor.h b/llvm/include/llvm/Transforms/IPO/Attributor.h
index c4ace30f3d64..8763b9fce06d 100644
--- a/llvm/include/llvm/Transforms/IPO/Attributor.h
+++ b/llvm/include/llvm/Transforms/IPO/Attributor.h
@@ -111,7 +111,7 @@
#include "llvm/Analysis/PostDominators.h"
#include "llvm/Analysis/TargetLibraryInfo.h"
#include "llvm/Analysis/TargetTransformInfo.h"
-#include "llvm/IR/CallSite.h"
+#include "llvm/IR/AbstractCallSite.h"
#include "llvm/IR/ConstantRange.h"
#include "llvm/IR/PassManager.h"
#include "llvm/Support/Allocator.h"
diff --git a/llvm/include/llvm/module.modulemap b/llvm/include/llvm/module.modulemap
index 4121bb0f131b..223e705f0045 100644
--- a/llvm/include/llvm/module.modulemap
+++ b/llvm/include/llvm/module.modulemap
@@ -234,7 +234,7 @@ module LLVM_intrinsic_gen {
extern module LLVM_Extern_IR_Attributes_Gen "module.extern.modulemap"
export *
}
- module IR_CallSite { header "IR/CallSite.h" export * }
+ module IR_AbstractCallSite { header "IR/AbstractCallSite.h" export * }
module IR_ConstantFolder { header "IR/ConstantFolder.h" export * }
module IR_GlobalVariable { header "IR/GlobalVariable.h" export * }
module IR_NoFolder { header "IR/NoFolder.h" export * }
diff --git a/llvm/lib/IR/AbstractCallSite.cpp b/llvm/lib/IR/AbstractCallSite.cpp
index ab5551a8ea39..1f7371607b88 100644
--- a/llvm/lib/IR/AbstractCallSite.cpp
+++ b/llvm/lib/IR/AbstractCallSite.cpp
@@ -14,9 +14,8 @@
//
//===----------------------------------------------------------------------===//
+#include "llvm/IR/AbstractCallSite.h"
#include "llvm/ADT/Statistic.h"
-#include "llvm/ADT/StringSwitch.h"
-#include "llvm/IR/CallSite.h"
#include "llvm/Support/Debug.h"
using namespace llvm;
diff --git a/llvm/lib/Transforms/IPO/IPConstantPropagation.cpp b/llvm/lib/Transforms/IPO/IPConstantPropagation.cpp
index 40217b6f358f..a2d7bccadd37 100644
--- a/llvm/lib/Transforms/IPO/IPConstantPropagation.cpp
+++ b/llvm/lib/Transforms/IPO/IPConstantPropagation.cpp
@@ -17,7 +17,7 @@
#include "llvm/ADT/SmallVector.h"
#include "llvm/ADT/Statistic.h"
#include "llvm/Analysis/ValueTracking.h"
-#include "llvm/IR/CallSite.h"
+#include "llvm/IR/AbstractCallSite.h"
#include "llvm/IR/Constants.h"
#include "llvm/IR/Instructions.h"
#include "llvm/IR/Module.h"
More information about the llvm-commits
mailing list