]> granicus.if.org Git - llvm/commit
[llvm-objdump] Fix split of source lines; don't ltrim source lines
authorFangrui Song <maskray@google.com>
Sun, 7 Apr 2019 10:16:46 +0000 (10:16 +0000)
committerFangrui Song <maskray@google.com>
Sun, 7 Apr 2019 10:16:46 +0000 (10:16 +0000)
commitbcaec23c255bfca49179dd226d5e14e4f20b0f46
treeae54ab94ccfaec95512f0cdf30921fa4bb7a92ab
parentaaf1f3612ec5aeeee6edefd293c294e33ecefc08
[llvm-objdump] Fix split of source lines; don't ltrim source lines

If the file does not end with a newline, it may be dropped. Fix the
splitting algorithm.

Also delete an unnecessary SourceCache lookup.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@357858 91177308-0d34-0410-b5e6-96231b3b80d8
test/tools/llvm-objdump/X86/source-interleave-x86_64.ll
tools/llvm-objdump/llvm-objdump.cpp