Skip to content

Commit

Permalink
remove svffunction (#1671)
Browse files Browse the repository at this point in the history
* remove some svffunction

* init bb in funvar

* remove svffunction

* remove svfmodule and svfllvmvalue
  • Loading branch information
jumormt authored Mar 3, 2025
1 parent b661b1c commit c427b12
Show file tree
Hide file tree
Showing 43 changed files with 489 additions and 1,515 deletions.
1 change: 0 additions & 1 deletion svf-llvm/include/SVF-LLVM/BreakConstantExpr.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
#ifndef BREAKCONSTANTGEPS_H
#define BREAKCONSTANTGEPS_H

#include "SVF-LLVM/SVFLLVMValue.h"

namespace SVF
{
Expand Down
2 changes: 1 addition & 1 deletion svf-llvm/include/SVF-LLVM/CppUtil.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@
#ifndef CPPUtil_H_
#define CPPUtil_H_

#include "SVF-LLVM/SVFLLVMValue.h"
#include "SVF-LLVM/BasicTypes.h"
#include "Util/GeneralType.h"

namespace SVF
{
Expand Down
10 changes: 3 additions & 7 deletions svf-llvm/include/SVF-LLVM/DCHG.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,12 @@
#include "Graphs/GenericGraph.h"
#include "Graphs/CHG.h"
#include "SVF-LLVM/BasicTypes.h"
#include "SVF-LLVM/SVFModule.h"
#include "Util/SVFUtil.h"
#include "Util/WorkList.h"

namespace SVF
{

class SVFModule;
class DCHNode;

class DCHEdge : public GenericEdge<DCHNode>
Expand Down Expand Up @@ -230,8 +228,8 @@ class DCHGraph : public CommonCHGraph, public GenericGraph<DCHNode, DCHEdge>
static bool isAgg(const DIType* t);

public:
DCHGraph(const SVFModule *svfMod)
: svfModule(svfMod), numTypes(0) // vfID(0), buildingCHGTime(0) {
DCHGraph()
:numTypes(0) // vfID(0), buildingCHGTime(0) {
{
this->kind = DI;
}
Expand Down Expand Up @@ -358,8 +356,6 @@ class DCHGraph : public CommonCHGraph, public GenericGraph<DCHNode, DCHEdge>
bool isFirstField(const DIType* f, const DIType* b);

protected:
/// SVF Module this CHG is built from.
const SVFModule* svfModule;
/// Whether this CHG is an extended CHG (first-field). Set by buildCHG.
bool extended = false;
/// Maps DITypes to their nodes.
Expand Down Expand Up @@ -394,7 +390,7 @@ class DCHGraph : public CommonCHGraph, public GenericGraph<DCHNode, DCHEdge>
void handleDISubroutineType(const DISubroutineType* subroutineType);

/// Finds all defined virtual functions and attaches them to nodes.
void buildVTables(const SVFModule& module);
void buildVTables();

/// Returns a set of all children of type (CHA). Also gradually builds chaMap.
const NodeBS& cha(const DIType* type, bool firstField);
Expand Down
Loading

0 comments on commit c427b12

Please sign in to comment.