reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

lib/Transforms/Instrumentation/DataFlowSanitizer.cpp
  830     FunctionType *FT = F.getFunctionType();
  835     if (isInstrumented(&F)) {
  840         Function *NewF = Function::Create(NewFT, F.getLinkage(),
  841                                           F.getAddressSpace(), "", &M);
  842         NewF->copyAttributesFrom(&F);
  846         for (Function::arg_iterator FArg = F.arg_begin(),
  848                                     FArgEnd = F.arg_end();
  852         NewF->getBasicBlockList().splice(NewF->begin(), F.getBasicBlockList());
  854         for (Function::user_iterator UI = F.user_begin(), UE = F.user_end();
  854         for (Function::user_iterator UI = F.user_begin(), UE = F.user_end();
  864         F.replaceAllUsesWith(
  866         NewF->takeName(&F);
  867         F.eraseFromParent();
  871         addGlobalNamePrefix(&F);
  873     } else if (!IsZeroArgsVoidRet || getWrapperKind(&F) == WK_Custom) {
  884           F.hasLocalLinkage()
  885               ? F.getLinkage()
  889           &F, std::string("dfsw$") + std::string(F.getName()),
  889           &F, std::string("dfsw$") + std::string(F.getName()),
  896       F.replaceAllUsesWith(WrappedFnCst);
  898       UnwrappedFnMap[WrappedFnCst] = &F;
  901       if (!F.isDeclaration()) {
  906         FnsWithNativeABI.insert(&F);
  913         FnsToInstrument.push_back(&F);
  920       UnwrappedFnMap[&F] = &F;
  920       UnwrappedFnMap[&F] = &F;