Skip to content

Commit

Permalink
Passes linux interpreter runtime testing.
Browse files Browse the repository at this point in the history
  • Loading branch information
ragusaa committed Dec 8, 2023
1 parent 9bf026c commit ba845c0
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion libclambcc/ClamBCAnalyzer/ClamBCAnalyzer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ void ClamBCAnalysis::run(Module & m)
}
continue;
}
DEBUGERR << "THIS IS THE PLACE TO LOOK" << "<END>\n";
//DEBUGERR << "THIS IS THE PLACE TO LOOK" << "<END>\n";
//DEBUG_NONPOINTER(F.getName());
//DEBUG_VALUE(&F);
functionIDs[&F] = fid++;
Expand Down
4 changes: 4 additions & 0 deletions libclambcc/ClamBCRebuild/ClamBCRebuild.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,10 @@ class ClamBCRebuild : public PassInfoMixin<ClamBCRebuild>, public InstVisitor<Cl
std::vector<Function *> funcs;
for (auto i = pMod->begin(), e = pMod->end(); i != e; i++) {
Function *pFunc = llvm::cast<Function>(i);
const FunctionType *FTy = pFunc->getFunctionType();
if (FTy->isVarArg()){
return PreservedAnalyses::all();
}
funcs.push_back(pFunc);
}
for (size_t i = 0; i < funcs.size(); i++) {
Expand Down
2 changes: 2 additions & 0 deletions libclambcc/ClamBCRemoveUndefs/ClamBCRemoveUndefs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,8 @@ struct ClamBCRemoveUndefs : public PassInfoMixin<ClamBCRemoveUndefs >
PreservedAnalyses run(Module & m, ModuleAnalysisManager & MAM)
#endif
{
DEBUGERR << "This was causing issues in testing, so removed. Still need to verify that we no longer need it" << "<END>\n"; return PreservedAnalyses::all();

pMod = &m;

for (auto i = pMod->begin(), e = pMod->end(); i != e; i++) {
Expand Down

0 comments on commit ba845c0

Please sign in to comment.