Remove support for DIVariable's FlagIndirectVariable and expect
authorAdrian Prantl <aprantl@apple.com>
Mon, 19 Jan 2015 17:57:29 +0000 (17:57 +0000)
committerAdrian Prantl <aprantl@apple.com>
Mon, 19 Jan 2015 17:57:29 +0000 (17:57 +0000)
commit5883af3faaa5355cc886c0b66c95ab7669e024dc
treeca7fa021facd981f77260e5af019f357165ac39b
parent7c6f944cdf82c2faa5e2ae0a88184b5683474442
Remove support for DIVariable's FlagIndirectVariable and expect
frontends to use a DIExpression with a DW_OP_deref instead.

This is not only a much more natural place for this informationl; there
is also a technical reason: The FlagIndirectVariable is used to mark a
variable that is turned into a reference by virtue of the calling
convention; this happens for example to aggregate return values.
The inliner, for example, may actually need to undo this indirection to
correctly represent the value in its new context. This is impossible to
implement because the DIVariable can't be safely modified. We can however
safely construct a new DIExpression on the fly.

llvm-svn: 226476
18 files changed:
llvm/include/llvm/CodeGen/AsmPrinter.h
llvm/include/llvm/IR/DebugInfo.h
llvm/lib/CodeGen/AsmPrinter/AsmPrinterDwarf.cpp
llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.h
llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
llvm/test/DebugInfo/AArch64/struct_by_value.ll
llvm/test/DebugInfo/ARM/lowerbdgdeclare_vla.ll
llvm/test/DebugInfo/ARM/selectiondag-deadcode.ll
llvm/test/DebugInfo/X86/dbg_value_direct.ll
llvm/test/DebugInfo/X86/debug-loc-offset.ll
llvm/test/DebugInfo/X86/op_deref.ll
llvm/test/DebugInfo/X86/parameters.ll
llvm/test/DebugInfo/X86/pr19307.ll
llvm/test/DebugInfo/X86/reference-argument.ll
llvm/test/DebugInfo/X86/sret.ll
llvm/test/DebugInfo/X86/vla.ll
llvm/test/DebugInfo/debug-info-qualifiers.ll