Skip to content

Commit

Permalink
blah
Browse files Browse the repository at this point in the history
  • Loading branch information
ragusaa committed Nov 28, 2023
1 parent bb8278d commit 9bf026c
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 9 deletions.
4 changes: 2 additions & 2 deletions libclambcc/ClamBCAnalyzer/ClamBCAnalyzer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@ void ClamBCAnalysis::run(Module & m)

printGlobals(startTID);

DEBUGERR << "ClamBCAnalysis::run::" << __LINE__ << "><END>\n";
// DEBUGERR << "ClamBCAnalysis::run::" << __LINE__ << "><END>\n";
//return false;
}

Expand Down Expand Up @@ -478,7 +478,7 @@ void ClamBCAnalysis::printGlobals(uint16_t stid)
specialGlobals.insert(GV);
}

DEBUGERR << "PRINTING ALL GLOBALS IN ANALYZER" << "<END>\n";
//DEBUGERR << "PRINTING ALL GLOBALS IN ANALYZER" << "<END>\n";

// std::vector<Constant *> globalInits;
globalInits.push_back(0); // ConstantPointerNul placeholder
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,6 @@ namespace ClamBCLogicalCompilerHelper
*/
void ClamBCLogicalCompilerHelper::processPHI(PHINode * phi, Function * pCalledFunction, std::vector<Value*> & args){

DEBUG_VALUE(phi);

for (size_t i = 0; i < phi->getNumIncomingValues(); i++){
BasicBlock * pBB = phi->getIncomingBlock(i);
Value * pVal = phi->getIncomingValue(i);
Expand All @@ -136,7 +134,6 @@ namespace ClamBCLogicalCompilerHelper
my phi node, so no need for
a dyn_cast*/
size_t branchIdx = getBranchIdx(pBranch, phi->getParent());
DEBUG_NONPOINTER(branchIdx);

BasicBlock * pNew = BasicBlock::Create(pMod->getContext(), "ClamBCLogicalCompilerHelper_call_SetVirusName_", phi->getParent()->getParent(), phi->getParent());
pBranch->setSuccessor(branchIdx, pNew);
Expand All @@ -146,9 +143,6 @@ namespace ClamBCLogicalCompilerHelper
CallInst::Create(pCalledFunction->getFunctionType(), pCalledFunction, args, "ClamBCLogicalCompilerHelper_callInst", pNew);
BranchInst::Create(phi->getParent(), pNew);
}

// DEBUG_VALUE(phi->getParent()->getParent());
//exit(1);
}

/*
Expand Down
1 change: 0 additions & 1 deletion libclambcc/ClamBCWriter/ClamBCWriter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1675,7 +1675,6 @@ void ClamBCWriter::printBasicBlock(BasicBlock *BB)
stop("Inline assembly is not allowed", pInst);
}
if (RA->skipInstruction(pInst)) {
DEBUGERR << "Skipping Instruction::" << *pInst << "<END>\n";
continue;
}
const Type *Ty = pInst->getType();
Expand Down

0 comments on commit 9bf026c

Please sign in to comment.