aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Object/IRObjectFile.cpp
diff options
context:
space:
mode:
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>2015-02-28 23:52:24 +0000
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>2015-02-28 23:52:24 +0000
commit02f4bbc58880c5238fb031928977cac546270710 (patch)
treecd0541d3563e323f4f104d9ed8ed17a54bd0189d /llvm/lib/Object/IRObjectFile.cpp
parent9c3b89448a0b7c6b122e80b36d287317e75d6ac3 (diff)
downloadllvm-02f4bbc58880c5238fb031928977cac546270710.zip
llvm-02f4bbc58880c5238fb031928977cac546270710.tar.gz
llvm-02f4bbc58880c5238fb031928977cac546270710.tar.bz2
DebugInfo: Fix invalid file reference in CodeGen/X86/unknown-location.ll
There are two types of files in the old (current) debug info schema. !0 = !{!"some/filename", !"/path/to/dir"} !1 = !{!"0x29", !0} ; [ DW_TAG_file_type ] !1 has a wrapper class called `DIFile` which inherits from `DIScope` and is referenced in 'scope' fields. !0 is called a "file node", and debug info nodes with a 'file' field point at one of these directly -- although they're built in `DIBuilder` by sending in a `DIFile` and reaching into it. In the new hierarchy, I unified these nodes as `MDFile` (which `DIFile` is a lightweight wrapper for) in r230057. Moving the new hierarchy into place (and upgrading testcases) caused CodeGen/X86/unknown-location.ll to start failing -- apparently "0x29" was previously showing up in the linetable as a filename, causing: .loc 2 4 3 (where 2 points at filename "0x29") instead of: .loc 1 4 3 (where 1 points at the actual filename). Change the testcase to use the old schema correctly. llvm-svn: 230880
Diffstat (limited to 'llvm/lib/Object/IRObjectFile.cpp')
0 files changed, 0 insertions, 0 deletions