summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
diff options
context:
space:
mode:
authorRui Ueyama <ruiu@google.com>2016-04-20 20:13:41 +0000
committerRui Ueyama <ruiu@google.com>2016-04-20 20:13:41 +0000
commit07320e403001cc192f8565d77001d281d41f4572 (patch)
treeaad33f074fb45e28e99f46553a3fb614dc84e9ed /llvm/lib/Bitcode/Reader/BitcodeReader.cpp
parenta2495d9c5ab976232edf677ef147d6dee63fcb8c (diff)
downloadbcm5719-llvm-07320e403001cc192f8565d77001d281d41f4572.tar.gz
bcm5719-llvm-07320e403001cc192f8565d77001d281d41f4572.zip
ELF: Template LinkerScript class.
Originally, linker scripts were basically an alternative way to specify options to the command line options. But as we add more features to hanlde symbols and sections, many member functions needed to be templated. Now most the members are templated. It is probably time to template the entire class. Previously, LinkerScript is an executor of the linker script as well as a storage of linker script configurations. This is not suitable to template the class because when we are reading linker script files, we don't know the ELF type yet, so we can't instantiate ELF-templated classes. In this patch, I defined a new class, ScriptConfiguration, to store linker script configurations. ScriptParser writes parse results to it, and LinkerScript uses them. Differential Revision: http://reviews.llvm.org/D19302 llvm-svn: 266908
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud