summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/IPO
diff options
context:
space:
mode:
authorJohannes Doerfert <jdoerfert@anl.gov>2019-10-07 23:28:54 +0000
committerJohannes Doerfert <jdoerfert@anl.gov>2019-10-07 23:28:54 +0000
commitd4bea8830c919ea74eb2a618a0dd6a067654fb97 (patch)
tree2ec019968ca1a4f63d2b46975a42a1d16c5275cd /llvm/lib/Transforms/IPO
parent766f2cc1a4bbe5008efc75d0439e8cee2813e76c (diff)
downloadbcm5719-llvm-d4bea8830c919ea74eb2a618a0dd6a067654fb97.tar.gz
bcm5719-llvm-d4bea8830c919ea74eb2a618a0dd6a067654fb97.zip
[Attributor][FIX] Remove initialize calls and add undefs
The initialization logic has become part of the Attributor but the patches that introduced these calls here were in development when the transition happened. We also now clean up (undefine) the macros used to create attributes. llvm-svn: 373987
Diffstat (limited to 'llvm/lib/Transforms/IPO')
-rw-r--r--llvm/lib/Transforms/IPO/Attributor.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/IPO/Attributor.cpp b/llvm/lib/Transforms/IPO/Attributor.cpp
index 0bd454d8865..f314f69755f 100644
--- a/llvm/lib/Transforms/IPO/Attributor.cpp
+++ b/llvm/lib/Transforms/IPO/Attributor.cpp
@@ -4778,7 +4778,6 @@ const char AAMemoryBehavior::ID = 0;
SWITCH_PK_INV(CLASS, IRP_CALL_SITE, "call site") \
SWITCH_PK_CREATE(CLASS, IRP, IRP_FUNCTION, Function) \
} \
- AA->initialize(A); \
return *AA; \
}
@@ -4795,7 +4794,6 @@ const char AAMemoryBehavior::ID = 0;
SWITCH_PK_CREATE(CLASS, IRP, IRP_CALL_SITE_RETURNED, CallSiteReturned) \
SWITCH_PK_CREATE(CLASS, IRP, IRP_CALL_SITE_ARGUMENT, CallSiteArgument) \
} \
- AA->initialize(A); \
return *AA; \
}
@@ -4820,7 +4818,9 @@ CREATE_FUNCTION_ONLY_ABSTRACT_ATTRIBUTE_FOR_POSITION(AAHeapToStack)
CREATE_NON_RET_ABSTRACT_ATTRIBUTE_FOR_POSITION(AAMemoryBehavior)
+#undef CREATE_FUNCTION_ONLY_ABSTRACT_ATTRIBUTE_FOR_POSITION
#undef CREATE_FUNCTION_ABSTRACT_ATTRIBUTE_FOR_POSITION
+#undef CREATE_NON_RET_ABSTRACT_ATTRIBUTE_FOR_POSITION
#undef CREATE_VALUE_ABSTRACT_ATTRIBUTE_FOR_POSITION
#undef CREATE_ALL_ABSTRACT_ATTRIBUTE_FOR_POSITION
#undef SWITCH_PK_CREATE
OpenPOWER on IntegriCloud