summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2012-11-28 08:41:48 +0000
committerBill Wendling <isanbard@gmail.com>2012-11-28 08:41:48 +0000
commit706d3d66e9e5983d68e1b52b4f7d1ca674c9358d (patch)
treebec5a61d610a07cd480d29a5703e4ba1935dab16 /llvm/lib/Bitcode/Reader/BitcodeReader.cpp
parent17a1306ecc1ba42f603887e50440d82e5a15d753 (diff)
downloadbcm5719-llvm-706d3d66e9e5983d68e1b52b4f7d1ca674c9358d.tar.gz
bcm5719-llvm-706d3d66e9e5983d68e1b52b4f7d1ca674c9358d.zip
Add back support for reading and parsing 'deplibs'.
This is for backwards compatibility for pre-3.x bc files. The code reads the code, but does nothing with it. llvm-svn: 168779
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
-rw-r--r--llvm/lib/Bitcode/Reader/BitcodeReader.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/llvm/lib/Bitcode/Reader/BitcodeReader.cpp b/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
index dcbd68aee27..29c603ff989 100644
--- a/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
+++ b/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
@@ -1564,6 +1564,14 @@ bool BitcodeReader::ParseModule(bool Resume) {
TheModule->setModuleInlineAsm(S);
break;
}
+ case bitc::MODULE_CODE_DEPLIB: { // DEPLIB: [strchr x N]
+ // FIXME: Remove in 4.0.
+ std::string S;
+ if (ConvertToString(Record, 0, S))
+ return Error("Invalid MODULE_CODE_DEPLIB record");
+ // Ignore value.
+ break;
+ }
case bitc::MODULE_CODE_SECTIONNAME: { // SECTIONNAME: [strchr x N]
std::string S;
if (ConvertToString(Record, 0, S))
OpenPOWER on IntegriCloud