summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/MachineBasicBlock.cpp
diff options
context:
space:
mode:
authorAlex Bradbury <asb@lowrisc.org>2016-08-18 13:08:58 +0000
committerAlex Bradbury <asb@lowrisc.org>2016-08-18 13:08:58 +0000
commit3447ca3f0848738b474bc7a5f851eaa1052d7171 (patch)
treeebc58683a23991168385fd780a026da5f79945c3 /llvm/lib/CodeGen/MachineBasicBlock.cpp
parentdbb76dbde3d014af48f26f82b9904a20f210ba15 (diff)
downloadbcm5719-llvm-3447ca3f0848738b474bc7a5f851eaa1052d7171.tar.gz
bcm5719-llvm-3447ca3f0848738b474bc7a5f851eaa1052d7171.zip
(Trivial) TargetPassConfig: assert when TargetMachine has no MCAsmInfo
Summary: This is a pretty trivial, but I thought it was worth just checking that nobody feels it's completely the wrong thing to be doing. The motivation is that when starting a new backend, you often start with a minimal stub, pretty much just FooTargetMachine and FooTargetInfo. Once that's built, you might naturally try `llc -march=foo myinput.ll` and it seems more developer-friendly if this ends up asserting due to the lack of MCAsmInfo with an informative message rather than just segfaulting. Reviewers: MatzeB, chandlerc Subscribers: bogner, llvm-commits Differential Revision: https://reviews.llvm.org/D23443 llvm-svn: 279061
Diffstat (limited to 'llvm/lib/CodeGen/MachineBasicBlock.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud