summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2009-08-28 23:24:31 +0000
committerDevang Patel <dpatel@apple.com>2009-08-28 23:24:31 +0000
commit80ae34974b2f881b68a30034d47af58a417ba44b (patch)
treefddf00b6e4a26e6e988a4af83a5d4f317579850c /llvm/lib/Bitcode/Reader/BitcodeReader.cpp
parentbeefdc894898ad1d372a2eabb1c17d7780aa8645 (diff)
downloadbcm5719-llvm-80ae34974b2f881b68a30034d47af58a417ba44b.tar.gz
bcm5719-llvm-80ae34974b2f881b68a30034d47af58a417ba44b.zip
Reapply 79977.
Use MDNodes to encode debug info in llvm IR. llvm-svn: 80406
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
-rw-r--r--llvm/lib/Bitcode/Reader/BitcodeReader.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/llvm/lib/Bitcode/Reader/BitcodeReader.cpp b/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
index bc64bc1b8e4..f9cfe916252 100644
--- a/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
+++ b/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
@@ -16,7 +16,7 @@
#include "llvm/Constants.h"
#include "llvm/DerivedTypes.h"
#include "llvm/InlineAsm.h"
-#include "llvm/Instructions.h"
+#include "llvm/IntrinsicInst.h"
#include "llvm/LLVMContext.h"
#include "llvm/Metadata.h"
#include "llvm/Module.h"
@@ -2192,7 +2192,10 @@ Module *BitcodeReader::materializeModule(std::string *ErrInfo) {
}
}
std::vector<std::pair<Function*, Function*> >().swap(UpgradedIntrinsics);
-
+
+ // Check debug info intrinsics.
+ CheckDebugInfoIntrinsics(TheModule);
+
return TheModule;
}
OpenPOWER on IntegriCloud