[MCDwarf] Do not emit useless line table opcode.
authorFrederic Riss <friss@apple.com>
Sun, 15 Mar 2015 20:45:39 +0000 (20:45 +0000)
committerFrederic Riss <friss@apple.com>
Sun, 15 Mar 2015 20:45:39 +0000 (20:45 +0000)
commit02c39fa2778bf512f2721373c286fb9e9e67918d
tree4cddd2c9672bc2671adf7fb69a6aca2fffd1f166
parentd6c5465667283944c7aa8e80ef3856d5213d563d
[MCDwarf] Do not emit useless line table opcode.

No need to emit a DW_LNS_advance_pc with a 0 increment. Found out while
comparing dsymutil's and LLVM's line table encoding. Not a correctenss
fix, just a small encoding size optimization.

I'm not sure how to generate a sequence that triggers this, and moreover
llvm-dwardump doesn't dump the line table program, thus the effort
involved in creating a testcase for this trivial patch seemed out of
proportion.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@232332 91177308-0d34-0410-b5e6-96231b3b80d8
lib/MC/MCDwarf.cpp