aboutsummaryrefslogtreecommitdiff
path: root/clang/unittests/Basic/VirtualFileSystemTest.cpp
diff options
context:
space:
mode:
authorJessica Paquette <jpaquette@apple.com>2018-04-04 19:13:31 +0000
committerJessica Paquette <jpaquette@apple.com>2018-04-04 19:13:31 +0000
commitbccd18b816c0413f63b14ccb77077cced6f033f7 (patch)
tree5229911afb5c62cfe8e4848899b504bc4e2523a5 /clang/unittests/Basic/VirtualFileSystemTest.cpp
parentf7c5a10e55103ea8c8c46c7d9f0bbae50e39f96e (diff)
downloadllvm-bccd18b816c0413f63b14ccb77077cced6f033f7.zip
llvm-bccd18b816c0413f63b14ccb77077cced6f033f7.tar.gz
llvm-bccd18b816c0413f63b14ccb77077cced6f033f7.tar.bz2
[MachineOutliner] Add `useMachineOutliner` target hook
The MachineOutliner has a bunch of target hooks that will call llvm_unreachable if the target doesn't implement them. Therefore, if you enable the outliner on such a target, it'll just crash. It'd be much better if it'd just *not* run the outliner at all in this case. This commit adds a hook to TargetInstrInfo that returns false by default. Targets that implement the hook make it return true. The outliner checks the return value of this hook to decide whether or not to continue. llvm-svn: 329220
Diffstat (limited to 'clang/unittests/Basic/VirtualFileSystemTest.cpp')
0 files changed, 0 insertions, 0 deletions