IR: MDNode => Value: Add Instruction::getMDNode()
[oota-llvm.git] / lib / DebugInfo / DWARFContext.cpp
index 830db66098c008ae0a2667e310eb0ac70d950e41..aa86f6aac0312b47bad723460d8d1dde69c177f5 100644 (file)
@@ -509,7 +509,7 @@ static bool consumeCompressedDebugSectionHeader(StringRef &data,
   return true;
 }
 
-DWARFContextInMemory::DWARFContextInMemory(object::ObjectFile &Obj)
+DWARFContextInMemory::DWARFContextInMemory(const object::ObjectFile &Obj)
     : IsLittleEndian(Obj.isLittleEndian()),
       AddressSize(Obj.getBytesInAddress()) {
   for (const SectionRef &Section : Obj.sections()) {