[ELF] - implemented ternary operator for linkerscript expressions
authorGeorge Rimar <grimar@accesssoftek.com>
Fri, 22 Apr 2016 10:35:34 +0000 (10:35 +0000)
committerGeorge Rimar <grimar@accesssoftek.com>
Fri, 22 Apr 2016 10:35:34 +0000 (10:35 +0000)
commit8c4acddebc47b2d6dbd8d05fc39bf2e007046e16
treef041bf0668f201bbd4d638cfd3b118aa320fd86b
parentb530a2591b3d3f2d4c6f380468d710c677fe37be
[ELF] - implemented ternary operator for linkerscript expressions

Patch implements ternary operator for linkerscript expressions.
Like:

SECTIONS {
 . = 0x1 ? 0x2 : 0x3;
...
}

Differential revision: http://reviews.llvm.org/D19332

llvm-svn: 267132
lld/ELF/LinkerScript.cpp
lld/ELF/LinkerScript.h
lld/test/ELF/linkerscript-locationcounter.s