diff options
| author | Ahmed Charles <ace2001ac@gmail.com> | 2012-02-19 11:37:01 +0000 |
|---|---|---|
| committer | Ahmed Charles <ace2001ac@gmail.com> | 2012-02-19 11:37:01 +0000 |
| commit | 636a3d618ca8217e3fc77b0e47596a9114864aed (patch) | |
| tree | cc77af62ca8eec4a0419cb4bb871a5889353a24a /llvm/lib/ExecutionEngine | |
| parent | a4704ab080703a2f761b6319eb1f73ba02d3be5f (diff) | |
| download | bcm5719-llvm-636a3d618ca8217e3fc77b0e47596a9114864aed.tar.gz bcm5719-llvm-636a3d618ca8217e3fc77b0e47596a9114864aed.zip | |
Remove dead code. Improve llvm_unreachable text. Simplify some control flow.
llvm-svn: 150918
Diffstat (limited to 'llvm/lib/ExecutionEngine')
| -rw-r--r-- | llvm/lib/ExecutionEngine/Interpreter/Execution.cpp | 2 | ||||
| -rw-r--r-- | llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldMachO.cpp | 1 |
2 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/ExecutionEngine/Interpreter/Execution.cpp b/llvm/lib/ExecutionEngine/Interpreter/Execution.cpp index ac4c49f7caf..3dce3b3bf66 100644 --- a/llvm/lib/ExecutionEngine/Interpreter/Execution.cpp +++ b/llvm/lib/ExecutionEngine/Interpreter/Execution.cpp @@ -1235,7 +1235,7 @@ GenericValue Interpreter::getConstantExprValue (ConstantExpr *CE, break; default: dbgs() << "Unhandled ConstantExpr: " << *CE << "\n"; - llvm_unreachable(0); + llvm_unreachable("Unhandled ConstantExpr"); } return Dest; } diff --git a/llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldMachO.cpp b/llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldMachO.cpp index 75e4f71ed8c..4553ef42df7 100644 --- a/llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldMachO.cpp +++ b/llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldMachO.cpp @@ -34,7 +34,6 @@ resolveRelocation(uint8_t *Address, uint64_t Value, bool isPCRel, return resolveARMRelocation((uintptr_t)Address, (uintptr_t)Value, isPCRel, Type, Size, Addend); } - llvm_unreachable(""); } bool RuntimeDyldMachO:: |

