[PECOFF] Handle "--" option explicitly

This used to be handled automagically by the option parsing library,
but after LLVM r188314, we should handle it ourselves.

No functionality change, but adds a test.

git-svn-id: https://llvm.org/svn/llvm-project/lld/trunk@188318 91177308-0d34-0410-b5e6-96231b3b80d8
add InputGraph functionality

git-svn-id: https://llvm.org/svn/llvm-project/lld/trunk@188958 91177308-0d34-0410-b5e6-96231b3b80d8
[lld] Fix win7 failure on adding InputGraph functionality

git-svn-id: https://llvm.org/svn/llvm-project/lld/trunk@188961 91177308-0d34-0410-b5e6-96231b3b80d8
[lld][Darwin] fixing an accidentally removed change

git-svn-id: https://llvm.org/svn/llvm-project/lld/trunk@188963 91177308-0d34-0410-b5e6-96231b3b80d8
remove trailing whitespace

git-svn-id: https://llvm.org/svn/llvm-project/lld/trunk@188965 91177308-0d34-0410-b5e6-96231b3b80d8
[lld] Fix unused private fields for fixing build failure on darwin

git-svn-id: https://llvm.org/svn/llvm-project/lld/trunk@188978 91177308-0d34-0410-b5e6-96231b3b80d8
[lld][Hexagon] Enable Hexagon sdata sorting test

git-svn-id: https://llvm.org/svn/llvm-project/lld/trunk@188981 91177308-0d34-0410-b5e6-96231b3b80d8
[lld][Driver] Fix the unit test for lld gnu flavor

git-svn-id: https://llvm.org/svn/llvm-project/lld/trunk@188982 91177308-0d34-0410-b5e6-96231b3b80d8
fix build failures on platforms that use -Wunused-private-variable for builds

git-svn-id: https://llvm.org/svn/llvm-project/lld/trunk@188983 91177308-0d34-0410-b5e6-96231b3b80d8
[lld][test] fix -Wreturn-type error

git-svn-id: https://llvm.org/svn/llvm-project/lld/trunk@188988 91177308-0d34-0410-b5e6-96231b3b80d8
[lld][unittests] Change assert to llvm_unreachable

git-svn-id: https://llvm.org/svn/llvm-project/lld/trunk@189023 91177308-0d34-0410-b5e6-96231b3b80d8
[lld][PECOFF] Fix use of temporary strings

git-svn-id: https://llvm.org/svn/llvm-project/lld/trunk@189025 91177308-0d34-0410-b5e6-96231b3b80d8
[lld][PECOFF] Fix one more reference to a temporary string

git-svn-id: https://llvm.org/svn/llvm-project/lld/trunk@189035 91177308-0d34-0410-b5e6-96231b3b80d8
CMake: Don't look for llvm-tblgen when building outside LLVM tree

Previously, the CMake build would look for llvm-tblgen to determine
if a directory is an LLVM build or install directory. Since we don't
want to include llvm-tblgen in the install, look for llvm-config instead,
and use that to find llvm-tblgen.

(This is the lld equivalent of Clang r189127.)

git-svn-id: https://llvm.org/svn/llvm-project/lld/trunk@189128 91177308-0d34-0410-b5e6-96231b3b80d8
[lld] handle typeZeroFill atoms in ELF/Native/YAML

BSS atoms dont take any file space in the Input file. They are associated
with a contentType(typeZeroFill). Similiar zero fill types also exist which
have the same meaning in terms of occupying file space in the Input.

These atoms have to be handled seperately when writing to the
lld's intermediate file or the lld test infrastructure.

Also adds a test.

git-svn-id: https://llvm.org/svn/llvm-project/lld/trunk@189136 91177308-0d34-0410-b5e6-96231b3b80d8
[lld][ELF] Rename typeTLV content type for ELF

typeTLV content type is used by Darwin to represent thread local
storage. A new contentType has to be made to represent ELF
thread local storage data. These have been set to

- typeThreadZeroFill (represents TBSS storage)
- typeThreadData     (represents TDATA storage)

git-svn-id: https://llvm.org/svn/llvm-project/lld/trunk@189137 91177308-0d34-0410-b5e6-96231b3b80d8
[lld][ELF][Cleanup] Section associated with the relocation traversed

There is no change in functionality, this uses the defined way to access
the relocation section that belongs to a particular section.

git-svn-id: https://llvm.org/svn/llvm-project/lld/trunk@189138 91177308-0d34-0410-b5e6-96231b3b80d8
[lld][ELF] Dont ignore zero sized sections.

There may be relocations that may be pointing to the section
even if the section sizes are 0. We shouldnot ignore them
for that regard.

git-svn-id: https://llvm.org/svn/llvm-project/lld/trunk@189139 91177308-0d34-0410-b5e6-96231b3b80d8
Check for "asserts" rather than "debug" on test

The debug flag being checked for seems to be controlled by whether the
build is asserts/non-asserts rather than debug/non-debug. Mostly these
correlate, but not necessarily.

As far as I can tell with various combinations of debug/assetions this
change makes no difference on autotools builds, but fixes a check-all
failure with CMake.

git-svn-id: https://llvm.org/svn/llvm-project/lld/trunk@189147 91177308-0d34-0410-b5e6-96231b3b80d8
Fixes an additional temporary string use.

Patch by Ron Ofir.

git-svn-id: https://llvm.org/svn/llvm-project/lld/trunk@189151 91177308-0d34-0410-b5e6-96231b3b80d8