Skip to content

Commit

Permalink
Make SourceToString in entry_point const so it can be used where Entr…
Browse files Browse the repository at this point in the history
…yPoints are const.

PiperOrigin-RevId: 419777406
Change-Id: I45d70659df22fc0079ea71fdb778dfd816930664
  • Loading branch information
rmngoog authored and copybara-github committed Jan 5, 2022
1 parent ee4621b commit c884874
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion entry_point.cc
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ bool operator==(const EntryPoint& lhs, const EntryPoint& rhs) {
return lhs.address_ == rhs.address_;
}

std::string EntryPoint::SourceToString() {
std::string EntryPoint::SourceToString() const {
switch (source_) {
case Source::CODE_FLOW:
return "CODE_FLOW";
Expand Down
2 changes: 1 addition & 1 deletion entry_point.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ class EntryPoint {

EntryPoint(Address address, EntryPoint::Source source);

std::string SourceToString();
std::string SourceToString() const;

bool IsFunctionPrologue() const {
return source_ == Source::FUNCTION_PROLOGUE ||
Expand Down

0 comments on commit c884874

Please sign in to comment.