Skip to content

Commit b799fc4

Browse files
committed
Remove debug/comment
1 parent f9c446a commit b799fc4

File tree

1 file changed

+0
-27
lines changed

1 file changed

+0
-27
lines changed

llvm/lib/DWARFLinker/Classic/DWARFLinker.cpp

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@
3636
#include "llvm/Support/LEB128.h"
3737
#include "llvm/Support/Path.h"
3838
#include "llvm/Support/ThreadPool.h"
39-
#include <iostream>
4039
#include <vector>
4140

4241
namespace llvm {
@@ -2360,16 +2359,6 @@ void DWARFLinker::DIECloner::generateLineTableForUnit(CompileUnit &Unit) {
23602359
LineTableMapping[DummyKey] = DummyVal;
23612360
SmallVector<uint64_t> SortedLineTableKeys(LineTableMapping.keys());
23622361
llvm::sort(SortedLineTableKeys);
2363-
for (auto Key : SortedLineTableKeys) {
2364-
std::cout << std::hex << Key << " " << LineTableMapping[Key]
2365-
<< "\n";
2366-
}
2367-
for (auto StmtAttr : StmtAttrs) {
2368-
std::cout << std::hex << StmtAttr.get() << "\n";
2369-
}
2370-
for (auto Row : SeqStartRows) {
2371-
std::cout << std::hex << Row << "\n";
2372-
}
23732362

23742363
size_t StmtAttrIdx = 0, SeqStartIdx = 0;
23752364
size_t NextSeqOff = 0;
@@ -2410,22 +2399,6 @@ void DWARFLinker::DIECloner::generateLineTableForUnit(CompileUnit &Unit) {
24102399
// on.
24112400
SeqOffToOrigRow[NextSeqOff] = NextRow;
24122401
}
2413-
// size_t i = 0, j = 0;
2414-
// while (i < StmtAttrs.size() && j < SeqStartRows.size()) {
2415-
// auto It = SeqOffToOrigRow.find(StmtAttrs[i].get());
2416-
// // The match is not set, use current result.
2417-
// if (It == SeqOffToOrigRow.end()) {
2418-
// SeqOffToOrigRow.try_emplace(StmtAttrs[i].get(),
2419-
// SeqStartRows[j]);
2420-
// } else {
2421-
// while (It->second != SeqStartRows[j] && j <
2422-
// SeqStartRows.size()) {
2423-
// ++j;
2424-
// }
2425-
// }
2426-
// ++i;
2427-
// ++j;
2428-
// }
24292402
}
24302403

24312404
// Create a map of original row indices to new row indices.

0 commit comments

Comments
 (0)