diff --git a/llvm/include/llvm/Passes/PassBuilder.h b/llvm/include/llvm/Passes/PassBuilder.h --- a/llvm/include/llvm/Passes/PassBuilder.h +++ b/llvm/include/llvm/Passes/PassBuilder.h @@ -631,6 +631,9 @@ std::string ProfileFile, std::string ProfileRemappingFile); + + /// Returns PIC. External libraries can use this to add pass instrumentation + PassInstrumentationCallbacks *getPIC() const { return PIC; } private: static Optional> parsePipelineText(StringRef Text);