diff options
| author | David Blaikie <dblaikie@gmail.com> | 2013-09-22 17:01:50 +0000 |
|---|---|---|
| committer | David Blaikie <dblaikie@gmail.com> | 2013-09-22 17:01:50 +0000 |
| commit | ba860d74ba0087a652d218cf8ec7c9d102552b18 (patch) | |
| tree | adff948bd523922199d4dfa1838a314e07f2c7b2 /llvm/lib/DebugInfo | |
| parent | b8f33f1690b4ebc3dde177a06f2eb53cb8b41848 (diff) | |
| download | bcm5719-llvm-ba860d74ba0087a652d218cf8ec7c9d102552b18.tar.gz bcm5719-llvm-ba860d74ba0087a652d218cf8ec7c9d102552b18.zip | |
StringRef-ize some things
llvm-svn: 191178
Diffstat (limited to 'llvm/lib/DebugInfo')
| -rw-r--r-- | llvm/lib/DebugInfo/DWARFContext.cpp | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/llvm/lib/DebugInfo/DWARFContext.cpp b/llvm/lib/DebugInfo/DWARFContext.cpp index db0d21f4112..380f75fe097 100644 --- a/llvm/lib/DebugInfo/DWARFContext.cpp +++ b/llvm/lib/DebugInfo/DWARFContext.cpp @@ -438,14 +438,11 @@ DILineInfoTable DWARFContext::getLineInfoForAddressRange(uint64_t Address, } } - StringRef FuncNameRef = StringRef(FunctionName); - // If the Specifier says we don't need FileLineInfo, just // return the top-most function at the starting address. if (!Specifier.needs(DILineInfoSpecifier::FileLineInfo)) { - Lines.push_back(std::make_pair(Address, - DILineInfo(StringRef("<invalid>"), - FuncNameRef, 0, 0))); + Lines.push_back( + std::make_pair(Address, DILineInfo("<invalid>", FunctionName, 0, 0))); return Lines; } @@ -466,9 +463,8 @@ DILineInfoTable DWARFContext::getLineInfoForAddressRange(uint64_t Address, std::string FileName = "<invalid>"; getFileNameForCompileUnit(CU, LineTable, Row.File, NeedsAbsoluteFilePath, FileName); - Lines.push_back(std::make_pair(Row.Address, - DILineInfo(StringRef(FileName), - FuncNameRef, Row.Line, Row.Column))); + Lines.push_back(std::make_pair( + Row.Address, DILineInfo(FileName, FunctionName, Row.Line, Row.Column))); } return Lines; |

