MCPcopy Create free account
hub / github.com/GoSSIP-SJTU/Armariris / removeFunctionFromModule

Method removeFunctionFromModule

lib/Analysis/CallGraph.cpp:137–145  ·  view source on GitHub ↗

removeFunctionFromModule - Unlink the function from this module, returning it. Because this removes the function from the module, the call graph node is destroyed. This is only valid if the function does not call any other functions (ie, there are no edges in it's CGN). The easiest way to do this is to dropAllReferences before calling this.

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 3

DoPromotionFunction · 0.45
inlineCallsMethod · 0.45
removeDeadFunctionsMethod · 0.45

Calls 5

assertFunction · 0.50
emptyMethod · 0.45
getFunctionMethod · 0.45
eraseMethod · 0.45
removeMethod · 0.45

Tested by

no test coverage detected