File tree Expand file tree Collapse file tree 2 files changed +0
-17
lines changed Expand file tree Collapse file tree 2 files changed +0
-17
lines changed Original file line number Diff line number Diff line change @@ -23,10 +23,6 @@ uint64_t LLVMGlobalGetGUID(LLVMValueRef Global);
2323
2424void LLVMAddGlobalsAAWrapperPass (LLVMPassManagerRef PM );
2525
26- void LLVMAddInternalizePassWithMustPreservePredicate (
27- LLVMPassManagerRef PM , void * Context ,
28- LLVMBool (* MustPreserve )(LLVMValueRef , void * ));
29-
3026typedef enum {
3127 LLVMTailCallKindNone ,
3228 LLVMTailCallKindTail ,
Original file line number Diff line number Diff line change @@ -41,11 +41,6 @@ extern "C" {
4141 // https://reviews.llvm.org/D66237
4242 void LLVMAddGlobalsAAWrapperPass (LLVMPassManagerRef PM);
4343
44- // https://reviews.llvm.org/D62456
45- void LLVMAddInternalizePassWithMustPreservePredicate (
46- LLVMPassManagerRef PM, void *Context,
47- LLVMBool (*MustPreserve)(LLVMValueRef, void *));
48-
4944 // https://reviews.llvm.org/D66061
5045 typedef enum {
5146 LLVMTailCallKindNone,
@@ -85,14 +80,6 @@ uint64_t LLVMGlobalGetGUID(LLVMValueRef Glob) {
8580 return unwrap<GlobalValue>(Glob)->getGUID ();
8681}
8782
88- void LLVMAddInternalizePassWithMustPreservePredicate (
89- LLVMPassManagerRef PM, void *Context,
90- LLVMBool (*Pred)(LLVMValueRef, void *)) {
91- unwrap (PM)->add (createInternalizePass ([=](const GlobalValue &GV) {
92- return Pred (wrap (&GV), Context) == 0 ? false : true ;
93- }));
94- }
95-
9683void LLVMAddGlobalsAAWrapperPass (LLVMPassManagerRef PM) {
9784 unwrap (PM)->add (createGlobalsAAWrapperPass ());
9885}
You can’t perform that action at this time.
0 commit comments