Make the message associated with a fatal error slightly more helpful
authorPhilip Reames <listmail@philipreames.com>
Sun, 26 Apr 2015 22:00:34 +0000 (22:00 +0000)
committerPhilip Reames <listmail@philipreames.com>
Sun, 26 Apr 2015 22:00:34 +0000 (22:00 +0000)
commitc4ab95d900eea5553991be32e11c54ecc6611a2a
tree779d1307af449ff31213e0d22f4462a6998fa6af
parenta404b6f4216dad6f171583ed58a2ec832c0762c4
Make the message associated with a fatal error slightly more helpful

Looking into 23095, my best guess is that the CodeGen library itself isn't getting linked and initialized properly.  To make this slightly more obvious to consumers of LLVM, emit a different error message if we can tell that the registry is empty vs you've simply happened to name a collector which hasn't been registered.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@235824 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/GCMetadata.cpp