Skip to content

Commit 0967332

Browse files
committed
[ThinLTO] Add const qualifier to a couple of flag getter methods
Split these minor fixes out of D46699. llvm-svn: 332475
1 parent dcbf2e8 commit 0967332

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/include/llvm/IR/ModuleSummaryIndex.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ class GlobalValueSummary {
312312
StringRef modulePath() const { return ModulePath; }
313313

314314
/// Get the flags for this GlobalValue (see \p struct GVFlags).
315-
GVFlags flags() { return Flags; }
315+
GVFlags flags() const { return Flags; }
316316

317317
/// Return linkage type recorded for this global value.
318318
GlobalValue::LinkageTypes linkage() const {
@@ -516,7 +516,7 @@ class FunctionSummary : public GlobalValueSummary {
516516
}
517517

518518
/// Get function attribute flags.
519-
FFlags &fflags() { return FunFlags; }
519+
FFlags fflags() const { return FunFlags; }
520520

521521
/// Get the instruction count recorded for this function.
522522
unsigned instCount() const { return InstCount; }

0 commit comments

Comments
 (0)