mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-25 13:24:46 +00:00
[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
This commit is contained in:
@@ -80,10 +80,8 @@ DumpType("debug-dump", cl::init(DIDT_All),
|
||||
|
||||
static void PrintDILineInfo(DILineInfo dli) {
|
||||
if (PrintFunctions)
|
||||
outs() << (dli.getFunctionName() ? dli.getFunctionName() : "<unknown>")
|
||||
<< "\n";
|
||||
outs() << (dli.getFileName() ? dli.getFileName() : "<unknown>") << ':'
|
||||
<< dli.getLine() << ':' << dli.getColumn() << '\n';
|
||||
outs() << dli.FunctionName << "\n";
|
||||
outs() << dli.FileName << ':' << dli.Line << ':' << dli.Column << '\n';
|
||||
}
|
||||
|
||||
static void DumpInput(const StringRef &Filename) {
|
||||
|
Reference in New Issue
Block a user