summaryrefslogtreecommitdiff
path: root/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
commitbc5201f8371f9041e79efcca3b158335da5c2604 (patch)
treecdc3af2913419655bda4762fb9f09ac88b34cde8 /lib/Linker
parent5d74e1f64445713cca863af03b8b6ab39321046e (diff)
downloadllvm-bc5201f8371f9041e79efcca3b158335da5c2604.tar.gz
llvm-bc5201f8371f9041e79efcca3b158335da5c2604.tar.bz2
llvm-bc5201f8371f9041e79efcca3b158335da5c2604.tar.xz
Remove MetadataBase class because it is not adding significant value.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@94243 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Linker')
-rw-r--r--lib/Linker/LinkModules.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Linker/LinkModules.cpp b/lib/Linker/LinkModules.cpp
index dcd696c70d..e2cd47a21b 100644
--- a/lib/Linker/LinkModules.cpp
+++ b/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);