[DWARF parser] Turn DILineInfo into a struct.
[oota-llvm.git] / tools / llvm-dwarfdump / llvm-dwarfdump.cpp
index f4a9ae8bef0e3b3931a51ba2e0369553ac5fc5d1..e41ae251683cf337d6c20e88799df007c8fb73d0 100644 (file)
@@ -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) {