aboutsummaryrefslogtreecommitdiff
path: root/include/llvm/Module.h
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2010-06-22 01:19:38 +0000
committerDevang Patel <dpatel@apple.com>2010-06-22 01:19:38 +0000
commita762b093107ac3aa438815627006425d0b13a236 (patch)
treebe044c6b7bc7e60f47ec8c8528b98eb218d6db2e /include/llvm/Module.h
parent4d54e5b2dd4a3d3bed38ff9c7aa57fc66adb5855 (diff)
Use single interface, using twine, to get named metadata.
getNamedMetadata(). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@106518 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Module.h')
-rw-r--r--include/llvm/Module.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/include/llvm/Module.h b/include/llvm/Module.h
index 15e0a17e1e..994184f756 100644
--- a/include/llvm/Module.h
+++ b/include/llvm/Module.h
@@ -325,8 +325,7 @@ public:
/// getNamedMetadata - Return the first NamedMDNode in the module with the
/// specified name. This method returns null if a NamedMDNode with the
/// specified name is not found.
- NamedMDNode *getNamedMetadata(StringRef Name) const;
- NamedMDNode *getNamedMetadataUsingTwine(Twine Name) const;
+ NamedMDNode *getNamedMetadata(const Twine &Name) const;
/// getOrInsertNamedMetadata - Return the first named MDNode in the module
/// with the specified name. This method returns a new NamedMDNode if a