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 | e9834387469824d0582d663de6f6a41d0538fe53 (patch) | |
tree | 88c20e0f94b8b0192465e6680e9c56c976ed619e /lib/VMCore | |
parent | 3da076ffefafd09c01764d4094dd61cd7c79735a (diff) | |
download | external_llvm-e9834387469824d0582d663de6f6a41d0538fe53.zip external_llvm-e9834387469824d0582d663de6f6a41d0538fe53.tar.gz external_llvm-e9834387469824d0582d663de6f6a41d0538fe53.tar.bz2 |
MDNodes are not Constants.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113539 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore')
-rw-r--r-- | lib/VMCore/AsmWriter.cpp | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/lib/VMCore/AsmWriter.cpp b/lib/VMCore/AsmWriter.cpp index 14b0161..f9597cd 100644 --- a/lib/VMCore/AsmWriter.cpp +++ b/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); |