diff options
| author | Alexey Samsonov <vonosmas@gmail.com> | 2014-10-20 20:28:51 +0000 |
|---|---|---|
| committer | Alexey Samsonov <vonosmas@gmail.com> | 2014-10-20 20:28:51 +0000 |
| commit | 4a7eb380cc22869f06815034326f9dda19662e95 (patch) | |
| tree | 580d987e9a900b944d12b591e760bcfdeb159e07 /llvm/lib | |
| parent | 2f9e28c84fa706589d27925cf18c3d487e6dda90 (diff) | |
| download | bcm5719-llvm-4a7eb380cc22869f06815034326f9dda19662e95.tar.gz bcm5719-llvm-4a7eb380cc22869f06815034326f9dda19662e95.zip | |
Constify input argument of RelocVisitor and DWARFContext constructors. NFC.
llvm-svn: 220228
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/DebugInfo/DIContext.cpp | 2 | ||||
| -rw-r--r-- | llvm/lib/DebugInfo/DWARFContext.cpp | 2 | ||||
| -rw-r--r-- | llvm/lib/DebugInfo/DWARFContext.h | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/DebugInfo/DIContext.cpp b/llvm/lib/DebugInfo/DIContext.cpp index 29ef8f29f14..01aecf8226e 100644 --- a/llvm/lib/DebugInfo/DIContext.cpp +++ b/llvm/lib/DebugInfo/DIContext.cpp @@ -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); } diff --git a/llvm/lib/DebugInfo/DWARFContext.cpp b/llvm/lib/DebugInfo/DWARFContext.cpp index 830db66098c..aa86f6aac03 100644 --- a/llvm/lib/DebugInfo/DWARFContext.cpp +++ b/llvm/lib/DebugInfo/DWARFContext.cpp @@ -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()) { diff --git a/llvm/lib/DebugInfo/DWARFContext.h b/llvm/lib/DebugInfo/DWARFContext.h index 05c6accd2e4..c4586b0d4c1 100644 --- a/llvm/lib/DebugInfo/DWARFContext.h +++ b/llvm/lib/DebugInfo/DWARFContext.h @@ -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; } |

