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/lib/CodeGen/MachineBasicBlock.cpp | |
parent | 50792005106411265ae9b2915869a0b5025227a2 (diff) | |
download | llvm-400385c8beeb802842d1e4564b3a4b840367eaa6.zip llvm-400385c8beeb802842d1e4564b3a4b840367eaa6.tar.gz llvm-400385c8beeb802842d1e4564b3a4b840367eaa6.tar.bz2 |
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/lib/CodeGen/MachineBasicBlock.cpp')
0 files changed, 0 insertions, 0 deletions