Skip to content

Commit

Permalink
blah
Browse files Browse the repository at this point in the history
  • Loading branch information
ragusaa committed Jan 26, 2024
1 parent 68e0c52 commit 62afe58
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 13 deletions.
8 changes: 0 additions & 8 deletions libclambcc/ClamBCAnalyzer/ClamBCAnalyzer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -273,14 +273,6 @@ void ClamBCAnalysis::run(Module &m)
if (isa<DbgInfoIntrinsic>(&*II)) {
continue;
}
if (WriteDI) {
if (MDNode *Dbg = II->getMetadata(MDDbgKind)) {
if (!dbgMap.count(Dbg)) {
dbgMap[Dbg] = dbgid++;
}
anyDbgIds = true;
}
}

// Collect types of all instructions.
if (const AllocaInst *AI = dyn_cast<AllocaInst>(&*II)) {
Expand Down
1 change: 0 additions & 1 deletion libclambcc/ClamBCAnalyzer/ClamBCAnalyzer.h
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ class ClamBCAnalysis
unsigned maxGlobal = 0;
std::vector<llvm::Constant *> globalInits;
std::vector<const llvm::MDNode *> mds;
bool WriteDI = false;

virtual void printGlobals(uint16_t stid);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,9 @@ class ChangeMallocArgSize : public PassInfoMixin<ChangeMallocArgSize>
}

/* Yes, I know there is a "getTerminator" function, but I have come across blocks
* that have more than one branch instruction (I think it is a bug in the runtime), but
* until that is resolved, I want to use this function.
*/
* that have more than one branch instruction (I think it is a bug in the runtime), but
* until that is resolved, I want to use this function.
*/
Instruction* findTerminator(BasicBlock* pb)
{
Instruction* inst = nullptr;
Expand Down
2 changes: 1 addition & 1 deletion libclambcc/ClamBCWriter/ClamBCWriter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ static cl::opt<bool>

cl::opt<bool>
WriteDI("clambc-dbg", cl::Hidden, cl::init(false),
cl::desc("Write debug information into output bytecode"));
cl::desc("Write debug information into output bytecode (depracated)"));

static cl::opt<std::string> outFile("clambc-sigfile", cl::desc("Name of output file"),
cl::value_desc("Name of output file"),
Expand Down

0 comments on commit 62afe58

Please sign in to comment.