Skip to content

Commit 25c1b05

Browse files
committed
Fix the comment to be more concise.
1 parent be4da46 commit 25c1b05

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

lib/IRGen/IRGenModule.cpp

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1009,12 +1009,9 @@ llvm::SmallString<32> getTargetDependentLibraryOption(const llvm::Triple &T,
10091009
void IRGenModule::addLinkLibrary(const LinkLibrary &linkLib) {
10101010
llvm::LLVMContext &ctx = Module.getContext();
10111011

1012-
// Don't emit the FORCE_LOAD symbols and metadata when the compiler is
1013-
// running on behalf of the debugger. The debugger will read the LinkLibrary's
1014-
// from all the modules it sees, and hand load all the required dependencies.
1015-
// so it doesn't need this information. And since the FORCE_LOAD symbol is
1016-
// weak it doesn't even tell us whether a required dependency is missing.
1017-
// So it serves no purpose in this case.
1012+
// The debugger gets the autolink information directly from
1013+
// the LinkLibraries of the module, so there's no reason to
1014+
// emit it into the IR of debugger expressions.
10181015
if (!Context.LangOpts.DebuggerSupport)
10191016
return;
10201017

0 commit comments

Comments
 (0)