commit | 853b0fd623491ef7dafeed20ee15897e3b95d82c | [log] [tgz] |
---|---|---|
author | Benjamin Kramer <benny.kra@googlemail.com> | Mon Jul 25 23:04:36 2011 +0000 |
committer | Benjamin Kramer <benny.kra@googlemail.com> | Mon Jul 25 23:04:36 2011 +0000 |
tree | de14442a2e9a2939967097b4b26cc70754c79558 | |
parent | f0080016c64b784ca6eb402d43e323642505b395 [diff] [blame] |
llvm-objdump: Ignore unreachable blocks when printing the CFG. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@136000 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/tools/llvm-objdump/MCFunction.cpp b/tools/llvm-objdump/MCFunction.cpp index 4a4f9d5..66c6c4c 100644 --- a/tools/llvm-objdump/MCFunction.cpp +++ b/tools/llvm-objdump/MCFunction.cpp
@@ -54,6 +54,8 @@ } } Splits.insert(Index+Size); + } else if (Desc.isReturn()) { + Splits.insert(Index+Size); } Instructions.push_back(MCDecodedInst(Index, Size, Inst));