diff options
| author | Rui Ueyama <ruiu@google.com> | 2015-02-27 20:39:20 +0000 |
|---|---|---|
| committer | Rui Ueyama <ruiu@google.com> | 2015-02-27 20:39:20 +0000 |
| commit | 400385c8beeb802842d1e4564b3a4b840367eaa6 (patch) | |
| tree | 05a9aac6aee06e37dfa32571efc592bda99be147 /llvm/test/CodeGen/Generic | |
| parent | 50792005106411265ae9b2915869a0b5025227a2 (diff) | |
| download | bcm5719-llvm-400385c8beeb802842d1e4564b3a4b840367eaa6.tar.gz bcm5719-llvm-400385c8beeb802842d1e4564b3a4b840367eaa6.zip | |
PECOFF: Move a call of WinLinkDriver::parse from FileCOFF::doParse to FileCOFF::beforeLink
In doParse, we shouldn't do anything that has side effects. That function may be
called speculatively and possibly in parallel.
We called WinLinkDriver::parse from doParse to parse a command line in a .drectve
section. The parse function updates a linking context object, so it has many side
effects. It was not safe to call that function from doParse. beforeLink is a
function for a File object to do something that has side effects. Moving a call
of WinLinkDriver::parse to there.
llvm-svn: 230791
Diffstat (limited to 'llvm/test/CodeGen/Generic')
0 files changed, 0 insertions, 0 deletions

