aboutsummaryrefslogtreecommitdiff
path: root/lib/Sema
diff options
context:
space:
mode:
authorJeffrey Yasskin <jyasskin@google.com>2009-12-12 05:05:38 +0000
committerJeffrey Yasskin <jyasskin@google.com>2009-12-12 05:05:38 +0000
commit9f61aa9e280adea9fbf3365f0e4f6ed568c9885a (patch)
treebf05149dcc0469a9e2590d57a6b0a19a48aa1b47 /lib/Sema
parentde2baa7576f6638c31168960557d30eac1766eb9 (diff)
Un-namespace-qualify llvm_unreachable. It's a macro, so the qualification gave
no extra safety anyway. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@91207 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema')
-rw-r--r--lib/Sema/CodeCompleteConsumer.cpp2
-rw-r--r--lib/Sema/SemaCodeComplete.cpp2
-rw-r--r--lib/Sema/SemaInit.cpp4
-rw-r--r--lib/Sema/SemaLookup.cpp2
-rw-r--r--lib/Sema/SemaTemplate.cpp12
-rw-r--r--lib/Sema/SemaType.cpp6
-rw-r--r--lib/Sema/TreeTransform.h4
7 files changed, 16 insertions, 16 deletions
diff --git a/lib/Sema/CodeCompleteConsumer.cpp b/lib/Sema/CodeCompleteConsumer.cpp
index 91b16d3774..d8ed8949cb 100644
--- a/lib/Sema/CodeCompleteConsumer.cpp
+++ b/lib/Sema/CodeCompleteConsumer.cpp
@@ -46,7 +46,7 @@ CodeCompletionString::Chunk::Chunk(ChunkKind Kind, llvm::StringRef Text)
}
case CK_Optional:
- llvm::llvm_unreachable("Optional strings cannot be created from text");
+ llvm_unreachable("Optional strings cannot be created from text");
break;
case CK_LeftParen:
diff --git a/lib/Sema/SemaCodeComplete.cpp b/lib/Sema/SemaCodeComplete.cpp
index 654bf25944..42ac6f19b0 100644
--- a/lib/Sema/SemaCodeComplete.cpp
+++ b/lib/Sema/SemaCodeComplete.cpp
@@ -1352,7 +1352,7 @@ namespace {
case Result::RK_Keyword:
case Result::RK_Pattern:
- llvm::llvm_unreachable("Result kinds handled above");
+ llvm_unreachable("Result kinds handled above");
break;
}
diff --git a/lib/Sema/SemaInit.cpp b/lib/Sema/SemaInit.cpp
index a1fd79b852..db5643898b 100644
--- a/lib/Sema/SemaInit.cpp
+++ b/lib/Sema/SemaInit.cpp
@@ -2913,13 +2913,13 @@ bool InitializationSequence::Diagnose(Sema &S,
S.Diag(Best->Function->getLocation(), diag::note_unavailable_here)
<< Best->Function->isDeleted();
} else {
- llvm::llvm_unreachable("Inconsistent overload resolution?");
+ llvm_unreachable("Inconsistent overload resolution?");
}
break;
}
case OR_Success:
- llvm::llvm_unreachable("Conversion did not fail!");
+ llvm_unreachable("Conversion did not fail!");
break;
}
break;
diff --git a/lib/Sema/SemaLookup.cpp b/lib/Sema/SemaLookup.cpp
index 7428e941d5..724e2fc1e4 100644
--- a/lib/Sema/SemaLookup.cpp
+++ b/lib/Sema/SemaLookup.cpp
@@ -1167,7 +1167,7 @@ bool Sema::DiagnoseAmbiguousLookup(LookupResult &Result) {
}
}
- llvm::llvm_unreachable("unknown ambiguity kind");
+ llvm_unreachable("unknown ambiguity kind");
return true;
}
diff --git a/lib/Sema/SemaTemplate.cpp b/lib/Sema/SemaTemplate.cpp
index 3ac6bbac5b..9fa57c03ea 100644
--- a/lib/Sema/SemaTemplate.cpp
+++ b/lib/Sema/SemaTemplate.cpp
@@ -351,7 +351,7 @@ static TemplateArgumentLoc translateTemplateArgument(Sema &SemaRef,
}
}
- llvm::llvm_unreachable("Unhandled parsed template argument");
+ llvm_unreachable("Unhandled parsed template argument");
return TemplateArgumentLoc();
}
@@ -1916,7 +1916,7 @@ bool Sema::CheckTemplateArgument(NamedDecl *Param,
}
case TemplateArgument::Pack:
- llvm::llvm_unreachable("Caller must expand template argument packs");
+ llvm_unreachable("Caller must expand template argument packs");
break;
}
@@ -1969,16 +1969,16 @@ bool Sema::CheckTemplateArgument(NamedDecl *Param,
return true;
case TemplateArgument::Declaration:
- llvm::llvm_unreachable(
+ llvm_unreachable(
"Declaration argument with template template parameter");
break;
case TemplateArgument::Integral:
- llvm::llvm_unreachable(
+ llvm_unreachable(
"Integral argument with template template parameter");
break;
case TemplateArgument::Pack:
- llvm::llvm_unreachable("Caller must expand template argument packs");
+ llvm_unreachable("Caller must expand template argument packs");
break;
}
@@ -4695,7 +4695,7 @@ Sema::CheckTypenameType(NestedNameSpecifier *NNS, const IdentifierInfo &II,
break;
case LookupResult::FoundUnresolvedValue:
- llvm::llvm_unreachable("unresolved using decl in non-dependent context");
+ llvm_unreachable("unresolved using decl in non-dependent context");
return QualType();
case LookupResult::FoundOverloaded:
diff --git a/lib/Sema/SemaType.cpp b/lib/Sema/SemaType.cpp
index c52ac75332..37f19f2be4 100644
--- a/lib/Sema/SemaType.cpp
+++ b/lib/Sema/SemaType.cpp
@@ -1193,7 +1193,7 @@ QualType Sema::GetTypeForDeclarator(Declarator &D, Scope *S,
case NestedNameSpecifier::Namespace:
case NestedNameSpecifier::Global:
- llvm::llvm_unreachable("Nested-name-specifier must name a type");
+ llvm_unreachable("Nested-name-specifier must name a type");
break;
case NestedNameSpecifier::TypeSpec:
@@ -1360,7 +1360,7 @@ namespace {
DeclaratorLocFiller(const DeclaratorChunk &Chunk) : Chunk(Chunk) {}
void VisitQualifiedTypeLoc(QualifiedTypeLoc TL) {
- llvm::llvm_unreachable("qualified type locs not expected here!");
+ llvm_unreachable("qualified type locs not expected here!");
}
void VisitBlockPointerTypeLoc(BlockPointerTypeLoc TL) {
@@ -1415,7 +1415,7 @@ namespace {
}
void VisitTypeLoc(TypeLoc TL) {
- llvm::llvm_unreachable("unsupported TypeLoc kind in declarator!");
+ llvm_unreachable("unsupported TypeLoc kind in declarator!");
}
};
}
diff --git a/lib/Sema/TreeTransform.h b/lib/Sema/TreeTransform.h
index be3c04302e..643489fa37 100644
--- a/lib/Sema/TreeTransform.h
+++ b/lib/Sema/TreeTransform.h
@@ -1871,7 +1871,7 @@ void TreeTransform<Derived>::InventTemplateArgumentLoc(
SourceLocation Loc = getDerived().getBaseLocation();
switch (Arg.getKind()) {
case TemplateArgument::Null:
- llvm::llvm_unreachable("null template argument in TreeTransform");
+ llvm_unreachable("null template argument in TreeTransform");
break;
case TemplateArgument::Type:
@@ -2056,7 +2056,7 @@ TreeTransform<Derived>::TransformType(TypeLocBuilder &TLB, TypeLoc T) {
#include "clang/AST/TypeLocNodes.def"
}
- llvm::llvm_unreachable("unhandled type loc!");
+ llvm_unreachable("unhandled type loc!");
return QualType();
}