summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenPGO.cpp
diff options
context:
space:
mode:
authorRui Ueyama <ruiu@google.com>2014-05-14 05:31:54 +0000
committerRui Ueyama <ruiu@google.com>2014-05-14 05:31:54 +0000
commit551aacd6bc41a1422df1966b4d46761a6eb87adb (patch)
tree01a0b8127377be59198cbe65ac15049b97eab5f2 /clang/lib/CodeGen/CodeGenPGO.cpp
parentae6bb33ac21538d3bcefc3a03bc0214896ef4d28 (diff)
downloadbcm5719-llvm-551aacd6bc41a1422df1966b4d46761a6eb87adb.tar.gz
bcm5719-llvm-551aacd6bc41a1422df1966b4d46761a6eb87adb.zip
Add observers to Input Graph
Make it possible to add observers to an Input Graph, so that files returned from an Input Graph can be examined before they are passed to Resolver. To implement some PE/COFF features we need to know all the symbols that *can* be solved, including ones in archive files that are not yet to be read. Currently, Resolver only maintains a set of symbols that are already read. It has no knowledge on symbols in skipped files in an archive file. There are many ways to implement that. I chose to apply the observer pattern here because it seems most non-intrusive. We don't want to mess up Resolver with architecture specific features. Even in PE/COFF, the feature that needs this mechanism is minor. So I chose not to modify Resolver, but add a hook to Input Graph. Differential Revision: http://reviews.llvm.org/D3735 llvm-svn: 208753
Diffstat (limited to 'clang/lib/CodeGen/CodeGenPGO.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud