diff options
author | Rui Ueyama <ruiu@google.com> | 2013-12-27 07:05:04 +0000 |
---|---|---|
committer | Rui Ueyama <ruiu@google.com> | 2013-12-27 07:05:04 +0000 |
commit | d0cce867aeb714015528ffee46cc42457c207dc0 (patch) | |
tree | e2900a4b88b7482b8b79758c0337a9936ddbdf46 /clang/lib/CodeGen/BackendUtil.cpp | |
parent | 126153ab87f71d2a15dd1779f8881a9ab80626c6 (diff) | |
download | bcm5719-llvm-d0cce867aeb714015528ffee46cc42457c207dc0.tar.gz bcm5719-llvm-d0cce867aeb714015528ffee46cc42457c207dc0.zip |
[PECOFF] Parse .drectve section before reading other file contents.
Currently .drectve section contents are parsed after other sections are parsed.
That order may result in wrong results if other sections depend on command line
options in the directive section.
For example, if a weak symbol is defined using /alternatename option in the
directive section, we have to read it first and then read the text section
contents. Otherwise the weak symbol won't be defined.
This patch changes the order to fix the issue.
llvm-svn: 198071
Diffstat (limited to 'clang/lib/CodeGen/BackendUtil.cpp')
0 files changed, 0 insertions, 0 deletions