diff options
author | Dan Gohman <gohman@apple.com> | 2010-09-09 20:54:24 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2010-09-09 20:54:24 +0000 |
commit | f942e96ed50d9bc17743978bdb748ddc0ad9b902 (patch) | |
tree | 255754ea28acaa960bbe82c38d8edd85d6bde36e /llvm/lib/VMCore/AsmWriter.cpp | |
parent | 0a54da2fceb13cfef8faeb714b5a68f72ce68619 (diff) | |
download | bcm5719-llvm-f942e96ed50d9bc17743978bdb748ddc0ad9b902.tar.gz bcm5719-llvm-f942e96ed50d9bc17743978bdb748ddc0ad9b902.zip |
MDNodes are not Constants.
llvm-svn: 113539
Diffstat (limited to 'llvm/lib/VMCore/AsmWriter.cpp')
-rw-r--r-- | llvm/lib/VMCore/AsmWriter.cpp | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/llvm/lib/VMCore/AsmWriter.cpp b/llvm/lib/VMCore/AsmWriter.cpp index 14b016100b3..f9597cd4492 100644 --- a/llvm/lib/VMCore/AsmWriter.cpp +++ b/llvm/lib/VMCore/AsmWriter.cpp @@ -1057,11 +1057,6 @@ static void WriteConstantInternal(raw_ostream &Out, const Constant *CV, return; } - if (const MDNode *Node = dyn_cast<MDNode>(CV)) { - Out << "!" << Machine->getMetadataSlot(Node); - return; - } - if (const ConstantExpr *CE = dyn_cast<ConstantExpr>(CV)) { Out << CE->getOpcodeName(); WriteOptimizationInfo(Out, CE); |