diff options
author | Devang Patel <dpatel@apple.com> | 2010-01-22 22:52:10 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2010-01-22 22:52:10 +0000 |
commit | bc5201f8371f9041e79efcca3b158335da5c2604 (patch) | |
tree | cdc3af2913419655bda4762fb9f09ac88b34cde8 /lib/Linker/LinkModules.cpp | |
parent | 5d74e1f64445713cca863af03b8b6ab39321046e (diff) | |
download | external_llvm-bc5201f8371f9041e79efcca3b158335da5c2604.zip external_llvm-bc5201f8371f9041e79efcca3b158335da5c2604.tar.gz external_llvm-bc5201f8371f9041e79efcca3b158335da5c2604.tar.bz2 |
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/LinkModules.cpp')
-rw-r--r-- | lib/Linker/LinkModules.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Linker/LinkModules.cpp b/lib/Linker/LinkModules.cpp index dcd696c..e2cd47a 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); |