Skip to content

Commit 48c2acf

Browse files
[JITLink] LinkGraph::getName() can be const
1 parent 949d1d9 commit 48c2acf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/include/llvm/ExecutionEngine/JITLink/JITLink.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -799,7 +799,7 @@ class LinkGraph {
799799

800800
/// Returns the name of this graph (usually the name of the original
801801
/// underlying MemoryBuffer).
802-
const std::string &getName() { return Name; }
802+
const std::string &getName() const { return Name; }
803803

804804
/// Returns the target triple for this Graph.
805805
const Triple &getTargetTriple() const { return TT; }

0 commit comments

Comments
 (0)