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 | eaad5cdc2a3ac1f8813e9ee72c58428fd5e8bc33 (patch) | |
tree | b08709b4cef3b89f70c7005f799c65bd25dd4d5f /lib/DebugInfo | |
parent | 0d293e45b66c742fdbc3998209bb20ed6c5806bf (diff) | |
download | external_llvm-eaad5cdc2a3ac1f8813e9ee72c58428fd5e8bc33.zip external_llvm-eaad5cdc2a3ac1f8813e9ee72c58428fd5e8bc33.tar.gz external_llvm-eaad5cdc2a3ac1f8813e9ee72c58428fd5e8bc33.tar.bz2 |
StringRef-ize some things
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191178 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/DebugInfo')
-rw-r--r-- | lib/DebugInfo/DWARFContext.cpp | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/lib/DebugInfo/DWARFContext.cpp b/lib/DebugInfo/DWARFContext.cpp index db0d21f..380f75f 100644 --- a/lib/DebugInfo/DWARFContext.cpp +++ b/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; |