Emit the offset directly instead of creating a dummy expression.
authorRafael Espindola <rafael.espindola@gmail.com>
Tue, 17 Mar 2015 21:30:21 +0000 (21:30 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Tue, 17 Mar 2015 21:30:21 +0000 (21:30 +0000)
commit7e4820c1a6a9d561b5ca989bed0425f7f97c0537
tree224d83260b8e676e47ec52345c5b8a72e7fcc932
parent17913067f5050081771b4ad7c8499af80a696eea
Emit the offset directly instead of creating a dummy expression.

We were creating an expression of the form (S+C)-S which is just C.

Patch by Frédéric Riss. I just added the testcase.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@232549 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/AsmPrinter/DIE.cpp
test/DebugInfo/X86/ref_addr_relocation.ll