diff options
author | Manman Ren <mren@apple.com> | 2013-07-16 23:21:16 +0000 |
---|---|---|
committer | Manman Ren <mren@apple.com> | 2013-07-16 23:21:16 +0000 |
commit | c8cfaa1625a72aa3660a268dae753748cfed67d0 (patch) | |
tree | 523227b3a178285f153dc936af39f89be72ace67 /include | |
parent | 45193d39d9af6bf668ca248a4c4d9fd066e7760c (diff) | |
download | external_llvm-c8cfaa1625a72aa3660a268dae753748cfed67d0.zip external_llvm-c8cfaa1625a72aa3660a268dae753748cfed67d0.tar.gz external_llvm-c8cfaa1625a72aa3660a268dae753748cfed67d0.tar.bz2 |
Add getModuleFlag(StringRef Key) to query a module flag given Key.
No functionality change.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@186470 91177308-0d34-0410-b5e6-96231b3b80d8
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 d414405..2514be4 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. |