Skip to content

Commit ad1c431

Browse files
committed
Merge pull request #2896 from compnerd/debug-code-cleanup
IRGen: clean up some debug code
2 parents 1fe79d9 + 6023745 commit ad1c431

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

lib/IRGen/IRGenModule.cpp

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -859,12 +859,9 @@ void IRGenModule::emitAutolinkInfo() {
859859

860860
// Collect the linker options already in the module (from ClangCodeGen).
861861
auto *LinkerOptions = Module.getModuleFlag(LinkerOptionsFlagName);
862-
if (LinkerOptions) {
863-
for (auto &LinkOption : cast<llvm::MDNode>(LinkerOptions)->operands()) {
864-
LinkOption->dump();
862+
if (LinkerOptions)
863+
for (const auto &LinkOption : cast<llvm::MDNode>(LinkerOptions)->operands())
865864
AutolinkEntries.push_back(LinkOption);
866-
}
867-
}
868865

869866
// Remove duplicates.
870867
llvm::SmallPtrSet<llvm::Metadata*, 4> knownAutolinkEntries;

0 commit comments

Comments
 (0)