diff options
author | David Blaikie <dblaikie@gmail.com> | 2011-09-23 05:06:16 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2011-09-23 05:06:16 +0000 |
commit | 83d382b1cad133cb163a68dd7149fae2802275e1 (patch) | |
tree | 20f63870b2fa8c4a5b49076275bc8b60224f0edc /clang/lib/Driver/ToolChains.cpp | |
parent | 42fe6bd5f230d4c88377e24ace7a226c178dd2b4 (diff) | |
download | bcm5719-llvm-83d382b1cad133cb163a68dd7149fae2802275e1.tar.gz bcm5719-llvm-83d382b1cad133cb163a68dd7149fae2802275e1.zip |
Switch assert(0/false) llvm_unreachable.
llvm-svn: 140367
Diffstat (limited to 'clang/lib/Driver/ToolChains.cpp')
-rw-r--r-- | clang/lib/Driver/ToolChains.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/clang/lib/Driver/ToolChains.cpp b/clang/lib/Driver/ToolChains.cpp index 92c3ec9539b..b11fc89aa6a 100644 --- a/clang/lib/Driver/ToolChains.cpp +++ b/clang/lib/Driver/ToolChains.cpp @@ -243,7 +243,7 @@ Tool &Darwin::SelectTool(const Compilation &C, const JobAction &JA, switch (Key) { case Action::InputClass: case Action::BindArchClass: - assert(0 && "Invalid tool kind."); + llvm_unreachable("Invalid tool kind."); case Action::PreprocessJobClass: T = new tools::darwin::Preprocess(*this); break; case Action::AnalyzeJobClass: @@ -323,7 +323,7 @@ void DarwinClang::AddLinkSearchPathArgs(const ArgList &Args, P.appendComponent("gcc"); switch (getTriple().getArch()) { default: - assert(0 && "Invalid Darwin arch!"); + llvm_unreachable("Invalid Darwin arch!"); case llvm::Triple::x86: case llvm::Triple::x86_64: P.appendComponent("i686-apple-darwin10"); @@ -1002,7 +1002,7 @@ Tool &Generic_GCC::SelectTool(const Compilation &C, switch (Key) { case Action::InputClass: case Action::BindArchClass: - assert(0 && "Invalid tool kind."); + llvm_unreachable("Invalid tool kind."); case Action::PreprocessJobClass: T = new tools::gcc::Preprocess(*this); break; case Action::PrecompileJobClass: @@ -1093,7 +1093,7 @@ Tool &TCEToolChain::SelectTool(const Compilation &C, case Action::AnalyzeJobClass: T = new tools::Clang(*this); break; default: - assert(false && "Unsupported action for TCE target."); + llvm_unreachable("Unsupported action for TCE target."); } } return *T; @@ -1805,7 +1805,7 @@ Tool &Windows::SelectTool(const Compilation &C, const JobAction &JA, case Action::LipoJobClass: case Action::DsymutilJobClass: case Action::VerifyJobClass: - assert(0 && "Invalid tool kind."); + llvm_unreachable("Invalid tool kind."); case Action::PreprocessJobClass: case Action::PrecompileJobClass: case Action::AnalyzeJobClass: |