diff options
| author | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2015-04-07 04:07:31 +0000 |
|---|---|---|
| committer | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2015-04-07 04:07:31 +0000 |
| commit | d5e6a153ad0449dc019cb6a7ce41f71478d8e491 (patch) | |
| tree | 800e85afef58b38c122a697d864bd2012602be8d /llvm/lib/IR/DIBuilder.cpp | |
| parent | bd42d5d7e087617e78b7503907da2102f8ec36f2 (diff) | |
| download | bcm5719-llvm-d5e6a153ad0449dc019cb6a7ce41f71478d8e491.tar.gz bcm5719-llvm-d5e6a153ad0449dc019cb6a7ce41f71478d8e491.zip | |
DebugInfo: Use DebugNodeRef in MDImportedEntity::getEntity()
A quick cleanup to sue `DebugNodeRef` instead of `Metadata*` for
`MDImportedEntity::getEntity()`.
llvm-svn: 234288
Diffstat (limited to 'llvm/lib/IR/DIBuilder.cpp')
| -rw-r--r-- | llvm/lib/IR/DIBuilder.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/IR/DIBuilder.cpp b/llvm/lib/IR/DIBuilder.cpp index a6e3d3be888..ba314b45462 100644 --- a/llvm/lib/IR/DIBuilder.cpp +++ b/llvm/lib/IR/DIBuilder.cpp @@ -174,7 +174,8 @@ static DIImportedEntity createImportedModule(LLVMContext &C, dwarf::Tag Tag, DIScope Context, Metadata *NS, unsigned Line, StringRef Name, SmallVectorImpl<TrackingMDNodeRef> &AllImportedModules) { - DIImportedEntity M = MDImportedEntity::get(C, Tag, Context, NS, Line, Name); + DIImportedEntity M = + MDImportedEntity::get(C, Tag, Context, DebugNodeRef(NS), Line, Name); AllImportedModules.emplace_back(M.get()); return M; } |

