summaryrefslogtreecommitdiff
path: root/tools/llvm-rtdyld
diff options
context:
space:
mode:
authorAlexey Samsonov <samsonov@google.com>2014-04-18 21:36:39 +0000
committerAlexey Samsonov <samsonov@google.com>2014-04-18 21:36:39 +0000
commit08ef0202ce1b2324cccafba3d640cc8a9b859dd0 (patch)
tree0139a3b5dfc177e1c5949e2fa285603c89c00a89 /tools/llvm-rtdyld
parent037da24c10511f857cf2790905d9378184c3a355 (diff)
downloadllvm-08ef0202ce1b2324cccafba3d640cc8a9b859dd0.tar.gz
llvm-08ef0202ce1b2324cccafba3d640cc8a9b859dd0.tar.bz2
llvm-08ef0202ce1b2324cccafba3d640cc8a9b859dd0.tar.xz
[DWARF parser] Turn DILineInfo into a struct.
Immutable DILineInfo doesn't bring any benefits and complicates code. Also, use std::string instead of SmallString<16> for file and function names - their length can vary significantly. No functionality change. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@206654 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/llvm-rtdyld')
-rw-r--r--tools/llvm-rtdyld/llvm-rtdyld.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/tools/llvm-rtdyld/llvm-rtdyld.cpp b/tools/llvm-rtdyld/llvm-rtdyld.cpp
index ac43653d58..5e3c488c7b 100644
--- a/tools/llvm-rtdyld/llvm-rtdyld.cpp
+++ b/tools/llvm-rtdyld/llvm-rtdyld.cpp
@@ -172,8 +172,7 @@ static int printLineInfoForInput() {
DILineInfoTable::iterator End = Lines.end();
for (DILineInfoTable::iterator It = Begin; It != End; ++It) {
outs() << " Line info @ " << It->first - Addr << ": "
- << It->second.getFileName()
- << ", line:" << It->second.getLine() << "\n";
+ << It->second.FileName << ", line:" << It->second.Line << "\n";
}
}
}