summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2009-07-30 18:46:29 +0000
committerDevang Patel <dpatel@apple.com>2009-07-30 18:46:29 +0000
commit3f4ab29f45944e6631d730db2b856a635fd44c49 (patch)
tree4df2589f36d25dd0b137b3379f5ead9b4e6e1edb /llvm
parent57eae13c8deefa1b684182b6b70e66a1164b480d (diff)
downloadbcm5719-llvm-3f4ab29f45944e6631d730db2b856a635fd44c49.tar.gz
bcm5719-llvm-3f4ab29f45944e6631d730db2b856a635fd44c49.zip
Do not use getNamedValue() to lookup NamedMDNode. NamedMDNode is not a GlobalValue.
Thanks Benjamin Kramer! llvm-svn: 77619
Diffstat (limited to 'llvm')
-rw-r--r--llvm/lib/VMCore/Module.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/VMCore/Module.cpp b/llvm/lib/VMCore/Module.cpp
index 87d4b05cf14..9e1622e93d0 100644
--- a/llvm/lib/VMCore/Module.cpp
+++ b/llvm/lib/VMCore/Module.cpp
@@ -293,7 +293,7 @@ GlobalAlias *Module::getNamedAlias(const StringRef &Name) const {
/// specified name. This method returns null if a MDNode with the specified
/// name is not found.
NamedMDNode *Module::getNamedMetadata(const StringRef &Name) const {
- return dyn_cast_or_null<NamedMDNode>(getNamedValue(Name));
+ return dyn_cast_or_null<NamedMDNode>(getValueSymbolTable().lookup(Name));
}
//===----------------------------------------------------------------------===//
OpenPOWER on IntegriCloud