diff options
author | Chris Lattner <sabre@nondot.org> | 2012-01-31 06:05:00 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2012-01-31 06:05:00 +0000 |
commit | 8ea967d0502a685a489bc34787044da8d91ac152 (patch) | |
tree | 9dec688eeaf183b976af02027e281452ad6937b3 /llvm/lib/Bitcode/Writer/ValueEnumerator.cpp | |
parent | 841d7a24346b658231f7619c0799cc9666985b74 (diff) | |
download | bcm5719-llvm-8ea967d0502a685a489bc34787044da8d91ac152.tar.gz bcm5719-llvm-8ea967d0502a685a489bc34787044da8d91ac152.zip |
with recent changes, ConstantArray is never a "string". Remove the associated
methods and constant fold the clients to false.
llvm-svn: 149362
Diffstat (limited to 'llvm/lib/Bitcode/Writer/ValueEnumerator.cpp')
-rw-r--r-- | llvm/lib/Bitcode/Writer/ValueEnumerator.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/llvm/lib/Bitcode/Writer/ValueEnumerator.cpp b/llvm/lib/Bitcode/Writer/ValueEnumerator.cpp index 1c4d670b271..1ed9004eb5a 100644 --- a/llvm/lib/Bitcode/Writer/ValueEnumerator.cpp +++ b/llvm/lib/Bitcode/Writer/ValueEnumerator.cpp @@ -321,10 +321,6 @@ void ValueEnumerator::EnumerateValue(const Value *V) { if (const Constant *C = dyn_cast<Constant>(V)) { if (isa<GlobalValue>(C)) { // Initializers for globals are handled explicitly elsewhere. - } else if (isa<ConstantArray>(C) && cast<ConstantArray>(C)->isString()) { - // Do not enumerate the initializers for an array of simple characters. - // The initializers just pollute the value table, and we emit the strings - // specially. } else if (C->getNumOperands()) { // If a constant has operands, enumerate them. This makes sure that if a // constant has uses (for example an array of const ints), that they are |