OSDN Git Service

Make getCompileUnit non-const and return the current DIE if it
authorEric Christopher <echristo@gmail.com>
Tue, 14 May 2013 21:33:10 +0000 (21:33 +0000)
committerEric Christopher <echristo@gmail.com>
Tue, 14 May 2013 21:33:10 +0000 (21:33 +0000)
commit4d7f2ce93860bb587412c0d5bb572e7bdf7eaa96
tree34fdc1a469bc984615fee66b5cbb71a351f84e45
parent95ab32667456b13ad56634cc7554cde8a50db95a
Make getCompileUnit non-const and return the current DIE if it
happens to be a compile unit. Noticed on inspection and tested
via calling on a newly created compile unit. No functional change.

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