diff options
author | David Blaikie <dblaikie@gmail.com> | 2012-01-20 21:51:11 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2012-01-20 21:51:11 +0000 |
commit | 4d6ccb5f68cd7c6418a209f1fa4dbade569e4493 (patch) | |
tree | 9a48fa9f7f51fd635f6807ed7444fcdcad0e9bda /tools | |
parent | 0041d4d447c26825e566ba38a4fe301471fda1eb (diff) | |
download | external_llvm-4d6ccb5f68cd7c6418a209f1fa4dbade569e4493.zip external_llvm-4d6ccb5f68cd7c6418a209f1fa4dbade569e4493.tar.gz external_llvm-4d6ccb5f68cd7c6418a209f1fa4dbade569e4493.tar.bz2 |
More dead code removal (using -Wunreachable-code)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148578 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools')
-rw-r--r-- | tools/lto/LTOCodeGenerator.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/tools/lto/LTOCodeGenerator.cpp b/tools/lto/LTOCodeGenerator.cpp index 77d7dfe..111f8c8 100644 --- a/tools/lto/LTOCodeGenerator.cpp +++ b/tools/lto/LTOCodeGenerator.cpp @@ -34,6 +34,7 @@ #include "llvm/Target/TargetMachine.h" #include "llvm/Target/TargetRegisterInfo.h" #include "llvm/Support/CommandLine.h" +#include "llvm/Support/ErrorHandling.h" #include "llvm/Support/FormattedStream.h" #include "llvm/Support/MemoryBuffer.h" #include "llvm/Support/SystemUtils.h" @@ -111,8 +112,7 @@ bool LTOCodeGenerator::setDebugInfo(lto_debug_model debug, std::string& errMsg) _emitDwarfDebugInfo = true; return false; } - errMsg = "unknown debug format"; - return true; + llvm_unreachable("Unknown debug format!"); } @@ -126,8 +126,7 @@ bool LTOCodeGenerator::setCodePICModel(lto_codegen_model model, _codeModel = model; return false; } - errMsg = "unknown pic model"; - return true; + llvm_unreachable("Unknown PIC model!"); } void LTOCodeGenerator::setCpu(const char* mCpu) |