[llvm] c8e3686 - [WPD] Remove unused parameter (NFC)
Teresa Johnson via llvm-commits
llvm-commits at lists.llvm.org
Fri Dec 6 13:14:37 PST 2019
Author: Teresa Johnson
Date: 2019-12-06T13:14:21-08:00
New Revision: c8e36862f594a50fdd141337a3209965dabf4858
URL: https://github.com/llvm/llvm-project/commit/c8e36862f594a50fdd141337a3209965dabf4858
DIFF: https://github.com/llvm/llvm-project/commit/c8e36862f594a50fdd141337a3209965dabf4858.diff
LOG: [WPD] Remove unused parameter (NFC)
Remove unused parameter.
Added:
Modified:
llvm/lib/Transforms/IPO/WholeProgramDevirt.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Transforms/IPO/WholeProgramDevirt.cpp b/llvm/lib/Transforms/IPO/WholeProgramDevirt.cpp
index f4561b303ebe..2a857127f613 100644
--- a/llvm/lib/Transforms/IPO/WholeProgramDevirt.cpp
+++ b/llvm/lib/Transforms/IPO/WholeProgramDevirt.cpp
@@ -488,7 +488,7 @@ struct DevirtModule {
bool areRemarksEnabled();
- void scanTypeTestUsers(Function *TypeTestFunc, Function *AssumeFunc);
+ void scanTypeTestUsers(Function *TypeTestFunc);
void scanTypeCheckedLoadUsers(Function *TypeCheckedLoadFunc);
void buildTypeIdentifierMap(
@@ -1568,8 +1568,7 @@ bool DevirtModule::areRemarksEnabled() {
return false;
}
-void DevirtModule::scanTypeTestUsers(Function *TypeTestFunc,
- Function *AssumeFunc) {
+void DevirtModule::scanTypeTestUsers(Function *TypeTestFunc) {
// Find all virtual calls via a virtual table pointer %p under an assumption
// of the form llvm.assume(llvm.type.test(%p, %md)). This indicates that %p
// points to a member of the type identifier %md. Group calls by (type ID,
@@ -1804,7 +1803,7 @@ bool DevirtModule::run() {
return false;
if (TypeTestFunc && AssumeFunc)
- scanTypeTestUsers(TypeTestFunc, AssumeFunc);
+ scanTypeTestUsers(TypeTestFunc);
if (TypeCheckedLoadFunc)
scanTypeCheckedLoadUsers(TypeCheckedLoadFunc);
More information about the llvm-commits
mailing list