diff options
author | Eric Christopher <echristo@gmail.com> | 2013-04-19 07:47:16 +0000 |
---|---|---|
committer | Eric Christopher <echristo@gmail.com> | 2013-04-19 07:47:16 +0000 |
commit | 41201ed06fa4fb246f5a7e9e2b62168814eca6ff (patch) | |
tree | 777fe95b7de35e7e1888e87eff944901de2cb0e8 /lib/IR/DIBuilder.cpp | |
parent | bcb81360a26cba066fae3acbe25b8ac161af6881 (diff) | |
download | external_llvm-41201ed06fa4fb246f5a7e9e2b62168814eca6ff.zip external_llvm-41201ed06fa4fb246f5a7e9e2b62168814eca6ff.tar.gz external_llvm-41201ed06fa4fb246f5a7e9e2b62168814eca6ff.tar.bz2 |
Revert "PR14606: debug info imported_module support"
This reverts commit r179836 as it seems to have caused test failures.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@179840 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/IR/DIBuilder.cpp')
-rw-r--r-- | lib/IR/DIBuilder.cpp | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/lib/IR/DIBuilder.cpp b/lib/IR/DIBuilder.cpp index 2e981a5..9d6e840 100644 --- a/lib/IR/DIBuilder.cpp +++ b/lib/IR/DIBuilder.cpp @@ -61,9 +61,6 @@ void DIBuilder::finalize() { DIArray GVs = getOrCreateArray(AllGVs); DIType(TempGVs).replaceAllUsesWith(GVs); - - DIArray IMs = getOrCreateArray(AllImportedModules); - DIType(TempImportedModules).replaceAllUsesWith(IMs); } /// getNonCompileUnitScope - If N is compile unit return NULL otherwise return @@ -104,8 +101,6 @@ void DIBuilder::createCompileUnit(unsigned Lang, StringRef Filename, TempGVs = MDNode::getTemporary(VMContext, TElts); - TempImportedModules = MDNode::getTemporary(VMContext, TElts); - Value *Elts[] = { GetTagConstant(VMContext, dwarf::DW_TAG_compile_unit), createFilePathPair(VMContext, Filename, Directory), @@ -118,7 +113,6 @@ void DIBuilder::createCompileUnit(unsigned Lang, StringRef Filename, TempRetainTypes, TempSubprograms, TempGVs, - TempImportedModules, MDString::get(VMContext, SplitName) }; TheCU = DICompileUnit(MDNode::get(VMContext, Elts)); @@ -128,21 +122,6 @@ void DIBuilder::createCompileUnit(unsigned Lang, StringRef Filename, NMD->addOperand(TheCU); } -DIImportedModule DIBuilder::createImportedModule(DIScope Context, - DINameSpace NS, - unsigned Line) { - Value *Elts[] = { - GetTagConstant(VMContext, dwarf::DW_TAG_imported_module), - Context, - NS, - ConstantInt::get(Type::getInt32Ty(VMContext), Line), - }; - DIImportedModule M(MDNode::get(VMContext, Elts)); - assert(M.Verify() && "Imported module should be valid"); - AllImportedModules.push_back(M); - return M; -} - /// createFile - Create a file descriptor to hold debugging information /// for a file. DIFile DIBuilder::createFile(StringRef Filename, StringRef Directory) { |