diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/IR/Module.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/llvm/IR/Module.h b/include/llvm/IR/Module.h index d414405818..2514be4faa 100644 --- a/include/llvm/IR/Module.h +++ b/include/llvm/IR/Module.h @@ -405,6 +405,10 @@ public: /// getModuleFlagsMetadata - Returns the module flags in the provided vector. void getModuleFlagsMetadata(SmallVectorImpl<ModuleFlagEntry> &Flags) const; + /// Return the corresponding value if Key appears in module flags, otherwise + /// return null. + Value *getModuleFlag(StringRef Key) const; + /// getModuleFlagsMetadata - Returns the NamedMDNode in the module that /// represents module-level flags. This method returns null if there are no /// module-level flags. |