mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-24 22:24:54 +00:00
Constify input argument of RelocVisitor and DWARFContext constructors. NFC.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@220228 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -13,6 +13,6 @@ using namespace llvm;
|
||||
|
||||
DIContext::~DIContext() {}
|
||||
|
||||
DIContext *DIContext::getDWARFContext(object::ObjectFile &Obj) {
|
||||
DIContext *DIContext::getDWARFContext(const object::ObjectFile &Obj) {
|
||||
return new DWARFContextInMemory(Obj);
|
||||
}
|
||||
|
@@ -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()) {
|
||||
|
@@ -240,7 +240,7 @@ class DWARFContextInMemory : public DWARFContext {
|
||||
SmallVector<SmallString<32>, 4> UncompressedSections;
|
||||
|
||||
public:
|
||||
DWARFContextInMemory(object::ObjectFile &);
|
||||
DWARFContextInMemory(const object::ObjectFile &Obj);
|
||||
bool isLittleEndian() const override { return IsLittleEndian; }
|
||||
uint8_t getAddressSize() const override { return AddressSize; }
|
||||
const DWARFSection &getInfoSection() override { return InfoSection; }
|
||||
|
Reference in New Issue
Block a user