X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=lib%2FDebugInfo%2FDWARFUnit.h;h=206d86c3087f6b0d16a53650130f1fdd5ae373da;hb=285133714f0d995e0e14a77e23a0abe5dfc32d17;hp=374eceaed2db14cb17e010aad93ba5d505bac990;hpb=1749b55006758b2b29c422dbbc936fce495dd126;p=oota-llvm.git diff --git a/lib/DebugInfo/DWARFUnit.h b/lib/DebugInfo/DWARFUnit.h index 374eceaed2d..206d86c3087 100644 --- a/lib/DebugInfo/DWARFUnit.h +++ b/lib/DebugInfo/DWARFUnit.h @@ -7,8 +7,8 @@ // //===----------------------------------------------------------------------===// -#ifndef LLVM_DEBUGINFO_DWARFUNIT_H -#define LLVM_DEBUGINFO_DWARFUNIT_H +#ifndef LLVM_LIB_DEBUGINFO_DWARFUNIT_H +#define LLVM_LIB_DEBUGINFO_DWARFUNIT_H #include "DWARFDebugAbbrev.h" #include "DWARFDebugInfoEntry.h" @@ -52,7 +52,7 @@ class DWARFUnit { std::unique_ptr DWOContext; DWARFUnit *DWOU; public: - DWOHolder(object::ObjectFile *DWOFile); + DWOHolder(std::unique_ptr DWOFile); DWARFUnit *getUnit() const { return DWOU; } }; std::unique_ptr DWO; @@ -118,7 +118,7 @@ public: const DWARFDebugInfoEntryMinimal * getCompileUnitDIE(bool extract_cu_die_only = true) { extractDIEsIfNeeded(extract_cu_die_only); - return DieArray.empty() ? NULL : &DieArray[0]; + return DieArray.empty() ? nullptr : &DieArray[0]; } const char *getCompilationDir();