Instantiate Interp output section only when needed.
authorRui Ueyama <ruiu@google.com>
Thu, 21 Jul 2016 11:01:23 +0000 (11:01 +0000)
committerRui Ueyama <ruiu@google.com>
Thu, 21 Jul 2016 11:01:23 +0000 (11:01 +0000)
commitfd03cfd27a35a7f98b5e7280cd5c08bd8e358f7c
treee6031e313709492f60577ad6aef0a901812bd637
parent865bf8637b1f20b9f7f682e2c1e4c3982560aada
Instantiate Interp output section only when needed.

This change simplifies interaction between Writer and the linker script
because we can make needsInterpSection() a file-scope function.

llvm-svn: 276261
lld/ELF/LinkerScript.cpp
lld/ELF/Writer.cpp
lld/ELF/Writer.h