diff options
author | Rui Ueyama <ruiu@google.com> | 2015-07-05 21:54:42 +0000 |
---|---|---|
committer | Rui Ueyama <ruiu@google.com> | 2015-07-05 21:54:42 +0000 |
commit | c80c03da6c032102d279c82315e89c0a476695ae (patch) | |
tree | 4148b0805dea6a743b69c34c426dfe100328b336 /clang/lib/Frontend/CompilerInstance.cpp | |
parent | cc9fad0bf79f97a7c96025685ba563bb137135d5 (diff) | |
download | llvm-c80c03da6c032102d279c82315e89c0a476695ae.zip llvm-c80c03da6c032102d279c82315e89c0a476695ae.tar.gz llvm-c80c03da6c032102d279c82315e89c0a476695ae.tar.bz2 |
COFF: Use atomic pointers in preparation for parallelizing.
In the new design, mutation of Symbol pointers is the name resolution
operation. This patch makes them atomic pointers so that they can
be mutated by multiple threads safely. I'm going to use atomic
compare-exchange on these pointers.
dyn_cast<> doesn't recognize atomic pointers as pointers,
so we need to call load(). This is unfortunate, but in other places
automatic type conversion works fine.
llvm-svn: 241416
Diffstat (limited to 'clang/lib/Frontend/CompilerInstance.cpp')
0 files changed, 0 insertions, 0 deletions