[llvm] 48c2acf - [JITLink] LinkGraph::getName() can be const
    Stefan Gränitz via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Tue Mar  2 06:08:13 PST 2021
    
    
  
Author: Stefan Gränitz
Date: 2021-03-02T15:07:34+01:00
New Revision: 48c2acff0c56aab178f2e62090d3f1a7649bd638
URL: https://github.com/llvm/llvm-project/commit/48c2acff0c56aab178f2e62090d3f1a7649bd638
DIFF: https://github.com/llvm/llvm-project/commit/48c2acff0c56aab178f2e62090d3f1a7649bd638.diff
LOG: [JITLink] LinkGraph::getName() can be const
Added: 
    
Modified: 
    llvm/include/llvm/ExecutionEngine/JITLink/JITLink.h
Removed: 
    
################################################################################
diff  --git a/llvm/include/llvm/ExecutionEngine/JITLink/JITLink.h b/llvm/include/llvm/ExecutionEngine/JITLink/JITLink.h
index a1f895b5b94f..539036eb5ef1 100644
--- a/llvm/include/llvm/ExecutionEngine/JITLink/JITLink.h
+++ b/llvm/include/llvm/ExecutionEngine/JITLink/JITLink.h
@@ -799,7 +799,7 @@ class LinkGraph {
 
   /// Returns the name of this graph (usually the name of the original
   /// underlying MemoryBuffer).
-  const std::string &getName() { return Name; }
+  const std::string &getName() const { return Name; }
 
   /// Returns the target triple for this Graph.
   const Triple &getTargetTriple() const { return TT; }
        
    
    
More information about the llvm-commits
mailing list