We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1fe79d9 + 6023745 commit ad1c431Copy full SHA for ad1c431
lib/IRGen/IRGenModule.cpp
@@ -859,12 +859,9 @@ void IRGenModule::emitAutolinkInfo() {
859
860
// Collect the linker options already in the module (from ClangCodeGen).
861
auto *LinkerOptions = Module.getModuleFlag(LinkerOptionsFlagName);
862
- if (LinkerOptions) {
863
- for (auto &LinkOption : cast<llvm::MDNode>(LinkerOptions)->operands()) {
864
- LinkOption->dump();
+ if (LinkerOptions)
+ for (const auto &LinkOption : cast<llvm::MDNode>(LinkerOptions)->operands())
865
AutolinkEntries.push_back(LinkOption);
866
- }
867
868
869
// Remove duplicates.
870
llvm::SmallPtrSet<llvm::Metadata*, 4> knownAutolinkEntries;
0 commit comments