Debug Info: code clean up.
authorManman Ren <manman.ren@gmail.com>
Tue, 29 Oct 2013 23:14:15 +0000 (23:14 +0000)
committerManman Ren <manman.ren@gmail.com>
Tue, 29 Oct 2013 23:14:15 +0000 (23:14 +0000)
commit38856f8bed12da9459a3eb958a1c8df68bf0aced
treec343ad2b7beee2277880b14948932165dd74af14
parent3eabc2adb7387c97da547e250997ed0a8d5e6d3d
Debug Info: code clean up.

Use EmitLabelOffsetDifference for handling on darwin platform when
non-darwin platforms use EmitLabelPlusOffset.

Also fix a bug in EmitLabelOffsetDifference where the size is hard-coded
to 4 even though Size is passed in as an argument.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@193660 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/AsmPrinter/AsmPrinter.cpp
lib/CodeGen/AsmPrinter/DwarfDebug.cpp