================
@@ -644,6 +648,12 @@ class CompilerInstance : public ModuleLoader {
   /// the compiler instance takes ownership of \p Value.
   void setCodeCompletionConsumer(CodeCompleteConsumer *Value);
 
+  /// }
+  /// @name Back-end Pass Plugins
+  /// @{
+
+  std::vector<llvm::PassPlugin *> &getPassPlugins() { return PassPlugins; }
----------------
tarunprabhu wrote:

```suggestion
  llvm::ArrayRef<llvm::PassPlugin*> getPassPlugins() { return PassPlugins; }
```

This may be better than returning a mutable reference to an `std::vector`.

https://github.com/llvm/llvm-project/pull/171868
_______________________________________________
llvm-branch-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

Reply via email to