Skip to content

Commit

Permalink
move toString/valueOnlyToString to SVFValue.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
yuleisui committed Oct 6, 2024
1 parent e910a99 commit 8c70cbe
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 14 deletions.
22 changes: 15 additions & 7 deletions svf/lib/SVFIR/SVFValue.cpp
Original file line number Diff line number Diff line change
@@ -1,16 +1,10 @@
#include "SVFIR/SVFValue.h"
#include "Util/SVFUtil.h"
#include "Graphs/GenericGraph.h"

using namespace SVF;
using namespace SVFUtil;

__attribute__((weak))
std::string SVFValue::toString() const
{
assert("SVFValue::toString should be implemented or supported by fronted" && false);
abort();
}

/// Add field (index and offset) with its corresponding type
void StInfo::addFldWithType(u32_t fldIdx, const SVFType* type, u32_t elemIdx)
{
Expand Down Expand Up @@ -274,3 +268,17 @@ SVFInstruction::SVFInstruction(const SVFType* ty, const SVFBasicBlock* b,
: SVFValue(ty, k), bb(b), terminator(tm), ret(isRet)
{
}

__attribute__((weak))
std::string SVFValue::toString() const
{
assert("SVFValue::toString should be implemented or supported by fronted" && false);
abort();
}

__attribute__((weak))
const std::string SVFBaseNode::valueOnlyToString() const
{
assert("SVFBaseNode::valueOnlyToString should be implemented or supported by fronted" && false);
abort();
}
7 changes: 0 additions & 7 deletions svf/lib/Util/SVFUtil.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -396,11 +396,4 @@ bool SVFUtil::isRetInstNode(const ICFGNode* node)
bool SVFUtil::isProgExitCall(const CallICFGNode* cs)
{
return isProgExitFunction(cs->getCalledFunction());
}

__attribute__((weak))
const std::string SVFBaseNode::valueOnlyToString() const
{
assert("SVFBaseNode::valueOnlyToString should be implemented or supported by fronted" && false);
abort();
}

0 comments on commit 8c70cbe

Please sign in to comment.