[PATCH] D38239: [ELF] - Define linkerscript symbols early.

Rui Ueyama via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 27 21:05:16 PDT 2017


ruiu added inline comments.


================
Comment at: ELF/LinkerScript.cpp:183-185
+  if (!CurAddressState)
+    return B ? B : addDummyRegular(Cmd);
+  return addRegular(Cmd);
----------------
I do not understand this change.


================
Comment at: ELF/LinkerScript.cpp:193
+  assert(!CurAddressState);
+  // Tell LTO to stop inlining symbols redefined by linker script.
+  for (BaseCommand *Base : Opt.Commands)
----------------
Do not copy-n-paste the same comment all around.


https://reviews.llvm.org/D38239





More information about the llvm-commits mailing list