[PATCH] D55309: ThinLTO: Do not import debug info for imported global constants

Eugene Leviant via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 4 23:47:38 PST 2018


evgeny777 added a comment.

Hello David,

This is an example of importing read-only GV:

  // main.c
  extern int foo;
  int main() { return foo; }

  // foo.c
  int foo = 42;

The variable `foo` is imported to main TU and internalized.
I don't know if/how importing variable list from `DICompileUnit` improves debugging experience.  What's your concern? Executable size?


Repository:
  rL LLVM

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D55309/new/

https://reviews.llvm.org/D55309





More information about the llvm-commits mailing list