mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-19 02:52:53 +02:00
Add const to "DWARFDie &Die" in a few functions as they can't change the DWARFDie.
llvm-svn: 302471
This commit is contained in:
parent
e6c32cf03f
commit
d186c095c9
@ -40,7 +40,7 @@ class DWARFVerifier {
|
||||
///
|
||||
/// @param Die The DWARF DIE that owns the attribute value
|
||||
/// @param AttrValue The DWARF attribute value to check
|
||||
void verifyDebugInfoAttribute(DWARFDie &Die, DWARFAttribute &AttrValue);
|
||||
void verifyDebugInfoAttribute(const DWARFDie &Die, DWARFAttribute &AttrValue);
|
||||
|
||||
/// Verifies the attribute's DWARF form.
|
||||
///
|
||||
@ -51,7 +51,7 @@ class DWARFVerifier {
|
||||
///
|
||||
/// @param Die The DWARF DIE that owns the attribute value
|
||||
/// @param AttrValue The DWARF attribute value to check
|
||||
void verifyDebugInfoForm(DWARFDie &Die, DWARFAttribute &AttrValue);
|
||||
void verifyDebugInfoForm(const DWARFDie &Die, DWARFAttribute &AttrValue);
|
||||
|
||||
/// Verifies the all valid references that were found when iterating through
|
||||
/// all of the DIE attributes.
|
||||
|
@ -23,7 +23,7 @@ using namespace llvm;
|
||||
using namespace dwarf;
|
||||
using namespace object;
|
||||
|
||||
void DWARFVerifier::verifyDebugInfoAttribute(DWARFDie &Die,
|
||||
void DWARFVerifier::verifyDebugInfoAttribute(const DWARFDie &Die,
|
||||
DWARFAttribute &AttrValue) {
|
||||
const auto Attr = AttrValue.Attr;
|
||||
switch (Attr) {
|
||||
@ -68,7 +68,7 @@ void DWARFVerifier::verifyDebugInfoAttribute(DWARFDie &Die,
|
||||
}
|
||||
}
|
||||
|
||||
void DWARFVerifier::verifyDebugInfoForm(DWARFDie &Die,
|
||||
void DWARFVerifier::verifyDebugInfoForm(const DWARFDie &Die,
|
||||
DWARFAttribute &AttrValue) {
|
||||
const auto Form = AttrValue.Value.getForm();
|
||||
switch (Form) {
|
||||
|
Loading…
Reference in New Issue
Block a user