diff options
author | David Blaikie <dblaikie@gmail.com> | 2012-01-17 07:00:13 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2012-01-17 07:00:13 +0000 |
commit | 58bd1510a4fea29b1ea57d6a6c4038eeea0264a2 (patch) | |
tree | 9b7f37c4525b2e8182cf56eb36a6a34aac2c3905 | |
parent | c6cf11b41243967b16211848b50876aab47e86df (diff) | |
download | external_llvm-58bd1510a4fea29b1ea57d6a6c4038eeea0264a2.zip external_llvm-58bd1510a4fea29b1ea57d6a6c4038eeea0264a2.tar.gz external_llvm-58bd1510a4fea29b1ea57d6a6c4038eeea0264a2.tar.bz2 |
Provide better messages in llvm_unreachable.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148293 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/VMCore/Core.cpp | 2 | ||||
-rw-r--r-- | utils/TableGen/CodeGenDAGPatterns.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/VMCore/Core.cpp b/lib/VMCore/Core.cpp index 82edb3a..7f86baa 100644 --- a/lib/VMCore/Core.cpp +++ b/lib/VMCore/Core.cpp @@ -1092,7 +1092,7 @@ LLVMLinkage LLVMGetLinkage(LLVMValueRef Global) { return LLVMCommonLinkage; } - llvm_unreachable("Make GCC's unreachability happy"); + llvm_unreachable("Invalid GlobalValue linkage!"); } void LLVMSetLinkage(LLVMValueRef Global, LLVMLinkage Linkage) { diff --git a/utils/TableGen/CodeGenDAGPatterns.cpp b/utils/TableGen/CodeGenDAGPatterns.cpp index 3880133..5087935 100644 --- a/utils/TableGen/CodeGenDAGPatterns.cpp +++ b/utils/TableGen/CodeGenDAGPatterns.cpp @@ -913,7 +913,7 @@ bool SDTypeConstraint::ApplyTypeConstraint(TreePatternNode *N, EnforceVectorSubVectorTypeIs(NodeToApply->getExtType(ResNo), TP); } } - llvm_unreachable("Make GCC's unreachability happy"); + llvm_unreachable("Invalid ConstraintType!"); } //===----------------------------------------------------------------------===// |