summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Linker
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2010-01-22 22:52:10 +0000
committerDevang Patel <dpatel@apple.com>2010-01-22 22:52:10 +0000
commitac277eb930da351e420a175fb016d704d453dd78 (patch)
treeec8612297c9a810e6988a4cd64cc0f8ac27ca136 /llvm/lib/Linker
parentc0f3f72fa41006b9b35be06d4dbf4b969a86790c (diff)
downloadbcm5719-llvm-ac277eb930da351e420a175fb016d704d453dd78.tar.gz
bcm5719-llvm-ac277eb930da351e420a175fb016d704d453dd78.zip
Remove MetadataBase class because it is not adding significant value.
llvm-svn: 94243
Diffstat (limited to 'llvm/lib/Linker')
-rw-r--r--llvm/lib/Linker/LinkModules.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Linker/LinkModules.cpp b/llvm/lib/Linker/LinkModules.cpp
index dcd696c70d4..e2cd47a21b3 100644
--- a/llvm/lib/Linker/LinkModules.cpp
+++ b/llvm/lib/Linker/LinkModules.cpp
@@ -392,7 +392,7 @@ static Value *RemapOperand(const Value *In,
assert(!isa<GlobalValue>(CPV) && "Unmapped global?");
llvm_unreachable("Unknown type of derived type constant value!");
}
- } else if (isa<MetadataBase>(In)) {
+ } else if (isa<MDNode>(In) || isa<MDString>(In)) {
Result = const_cast<Value*>(In);
} else if (isa<InlineAsm>(In)) {
Result = const_cast<Value*>(In);
OpenPOWER on IntegriCloud