[codeview] Check for a DIExpression offset for local variables
authorReid Kleckner <rnk@google.com>
Tue, 9 May 2017 19:59:29 +0000 (19:59 +0000)
committerReid Kleckner <rnk@google.com>
Tue, 9 May 2017 19:59:29 +0000 (19:59 +0000)
commitb5fced732416c1d9a2ffa1980ca1af88c06edd83
treebe7f854f4fcb5399e43b0ae77e0a09b625dfbb66
parentdfa7f613ed7ca025d6d4d2ea85073f6ddaa9f712
[codeview] Check for a DIExpression offset for local variables

Fixes inalloca parameters, which previously all pointed to the same
offset. Extend the test to use llvm-readobj so that we can test the
offset in a readable way.

llvm-svn: 302578
llvm/include/llvm/IR/DebugInfoMetadata.h
llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp
llvm/lib/IR/DebugInfoMetadata.cpp
llvm/test/DebugInfo/X86/dbg-declare-inalloca.ll